Re: Vacancy for a CakePHP developer in London (Farringdon)

2016-04-14 Thread Dr. Tarique Sani
:D On Fri, Apr 8, 2016 at 1:18 PM, Jeremy Burns : Class Outfit < jeremybu...@classoutfit.com> wrote: > Thank you, but Delhi is a long commute. I don’t think that will work. This > is an on site position. > > On 8 Apr 2016, at 08:18, Kamal Deol wrote: > > > > On Fri, Apr 8, 2016 at 8:31 AM, Jerem

Re: Cakephp 3.x How to create dynamic subdomain?

2016-02-23 Thread Dr. Tarique Sani
What is the error? The *.example.com should point to the same webroot as your www.example.com and example.com Do all the magic in your code On Tue, Feb 16, 2016 at 10:44 AM, Rajaram indira < rajaramindiras...@gmail.com> wrote: > Hi, > > I'm doing dynamic sub domain in cakephp 3.x like, >

Re: Classifieds aggregator

2015-09-30 Thread Dr. Tarique Sani
Your request is too vague. Start building and then ask when you are stuck On Wed, Sep 23, 2015 at 12:29 AM, Brara morad35 wrote: > Hello, > I'm on a project to build an portal web of Classifieds aggregator that > will contain two types of ads: > - local ads: added by our users > - Aspirated a

Re: How to create Login using "already-hashed password" from another application (non-cakephp application)

2015-06-24 Thread Dr. Tarique Sani
You create a custom password hasher class See http://book.cakephp.org/3.0/en/controllers/components/authentication.html#creating-custom-password-hasher-classes On Thu, Jun 25, 2015 at 9:39 AM, 'Cruisine' via CakePHP < cake-php@googlegroups.com> wrote: > Dear friends, > > Recently i'm working wi

Re: Where to create common functionalities with view in cakephp?

2015-05-06 Thread Dr. Tarique Sani
Start here http://book.cakephp.org/3.0/en/views/cells.html To quote from the page "Cells are ideal for building reusable page components that require interaction with models, view logic, and rendering logic." HTH On Mon, May 4, 2015 at 4:36 PM, heavyKevy wrote: > > As Lorenzo mentioned you ma

Re: universal searchbox and MVC

2014-12-18 Thread Dr. Tarique Sani
Create a search controller. On Thu, Dec 18, 2014 at 4:12 PM, Radharadhya Dasa wrote: > > Hi, > > This is more likely a theoretical question. > > I have let say 4 different models. On the header bar of the page I want to > have an universal search box. If the user types anything in the box I start

Re: Wordpress

2014-12-14 Thread Dr. Tarique Sani
I would go ahead and write a service, then consume it from inside Wordpress, don't use AJAX There are several tutorials for Wordpress + Consume Webservice If you get stuck feel free to ask again :) T On Sun, Dec 14, 2014 at 1:41 PM, Jeremy Burns wrote: > > So I'm two and a half months into a pr

Re: display pure html page without layout

2014-11-24 Thread Dr. Tarique Sani
Put it in /webroot On Mon, Nov 24, 2014 at 4:36 PM, Frank Hassani wrote: > Hi, > how can i call a pure html page, without a layout, from within cakePHP ? > > Regards, > Frank > > -- > Like Us on FaceBook https://www.facebook.com/CakePHP > Find us on Twitter http://twitter.com/CakePHP > > --- > Y

Re: Migrate Passwords

2014-10-31 Thread Dr. Tarique Sani
When users login successfully just take the password form the request data and hash it using Blowfish. Store the the new hash in a new column. Delete the simple hash for that user. Modify your login to match Blowfish as well as Simple hash for some time. Once all your users have logged in at least

Re: Security Component is Ruining my Life

2014-10-28 Thread Dr. Tarique Sani
On Mon, Oct 27, 2014 at 10:38 PM, Florian Krämer wrote: > I've turned the idea into an implementation. Proof of concept goes here: > https://github.com/burzum/cakephp/commit/9d8f6b4cb7653dd14130af68dbc632e9055d8d76 > > Cool! I will try this out... Tarique -- Like Us on FaceBook https://www.f

Re: Issue with deep associations - cake 3.0

2014-10-21 Thread Dr. Tarique Sani
Use use HTH T On Mon, Oct 20, 2014 at 8:26 PM, wrote: > I have the following in my Products controller: > > $creditIntermediaries = > $this->Products->CreditIntermediaries->find('list', ['valueField' => > 'persona.other_names']) > ->contain('Personas') > ->toAr

Re: cakedc/migrations Plugin: Index Operations

2014-10-16 Thread Dr. Tarique Sani
FWIW CakePH 3.0 will have a spanking new migrations plugin https://github.com/cakephp/migrations T On Thu, Oct 16, 2014 at 3:26 PM, deizel wrote: > Maybe next time - the issue should now be fixed in latest release. ;) > > On Thursday, 16 October 2014 04:17:24 UTC-5, OJ Tibi - @ojtibi wrote: >>

Re: i18n base language and database fields

2014-10-01 Thread Dr. Tarique Sani
On Wed, Oct 1, 2014 at 12:07 PM, Lucky1968 wrote: > > > I suggest you use your solution c), so make everything in English by __() > and do the translation when your application is ready by extracting the > .pot files. Extremely easy. > Yep! +1 to the above suggestion ./Console/cake i18n extract

Re: CakePHP 3.0 autocomplete

2014-09-30 Thread Dr. Tarique Sani
Yes, you should have a form template called autocomplete which your widget is using. See http://book.cakephp.org/3.0/en/core-libraries/helpers/form.html#customizing-the-templates-formhelper-uses and http://www.sanisoft.com/blog/2014/08/11/twitter-bootstrap-forms-cakephp-3/ Specifically Step 2 HTH

Re: CakePHP 3.0.0-beta2 released

2014-09-30 Thread Dr. Tarique Sani
What is the link to the Migrations plugin? T On Tue, Sep 30, 2014 at 4:44 AM, Reuben wrote: > Super excited for separate packages, and using components inside other > applications. > > > On Sunday, 28 September 2014 23:49:02 UTC+10, José Lorenzo wrote: >> >> The CakePHP core team is proud to an

Re: CakePHP 3.0 autocomplete

2014-09-30 Thread Dr. Tarique Sani
Show us the from template for autocomplete T On Tue, Sep 30, 2014 at 7:59 PM, Radharadhya Dasa wrote: > 1. /src/View/Widget/Autocomplete.php > > namespace App\View\Widget; > > use Cake\View\Widget\WidgetInterface; > use Cake\View\Form\ContextInterface; > > class Autocomplete implements WidgetI

Re: The (bad) perception and image of CakePHP in the public

2014-09-30 Thread Dr. Tarique Sani
#1 Mature and consistent #2 An active and friendly developer community #3 Does not break backward compatibility every few months (I am looking at you Laravel 5) T On Wed, Oct 1, 2014 at 3:55 AM, Reuben Helms wrote: > My 3 reasons: > > 1. CakePHP can integrate with legacy code. It only takes a

Re: Angular/Polymer web components and CakePHP

2014-09-22 Thread Dr. Tarique Sani
You mean should you learn an entire new framework so that you could have one layer less :D Whenever I get such projects the temptation is strong to go with some of the so called REST api frameworks but I keep coming back to cake for the familiarity and flexibility. Imaging if you did want a V laye

Re: Comparable 2.xx to 3.xx functionality

2014-09-21 Thread Dr. Tarique Sani
There are several ways to achieve what you want and they are all in the docs. Quoting a few lines from the V3 Book $allTitles = $articles->find()->extract('title'); //you can add a ->where() to this $this->User->validates(array('fieldList' => array('email', 'password'))) Yes your controller look

Re: DebugKit 3.0 installation

2014-09-09 Thread Dr. Tarique Sani
Must be a Windows thing. FWIW I had to add "minimum-stability" : "dev", "prefer-stable": true To composer.json to make it install as per instructions on Github but that is to be expected... T On Wed, Sep 10, 2014 at 6:40 AM, Joe Theuerkauf wrote: > Well, more digging around on my own & i go

Re: CakePHP 3 - How to send X-CSRF-Token header

2014-08-31 Thread Dr. Tarique Sani
Thanks, would really appreciate some code to look at. Please do post if you can when you get to a real computer. Tarique On Sat, Aug 30, 2014 at 6:11 PM, mark_story wrote: > I do this by adding a header with a jQuery beforeSend hook. I don't have > an example handy as I am not at a real comp

CakePHP 3 - How to send X-CSRF-Token header

2014-08-29 Thread Dr. Tarique Sani
Hi, Can anyone share some example code on how to send the X-CSRF-Token header containing the CSRF Token as mentioned in http://book.cakephp.org/3.0/en/core-libraries/components/csrf-component.html#csrf-protection-and-ajax-requests Thanks Tarique -- ===

Re: CakePHP 3.0 - Get data from event subject

2014-08-26 Thread Dr. Tarique Sani
you want the entity Id add the > $entity as the second argument of the function. > > > On Tuesday, August 26, 2014 2:00:49 PM UTC+2, Dr. Tarique Sani wrote: >> >> Trying something very simple here >> >> In my Listener I am trying to get >> >> $event->

CakePHP 3.0 - Get data from event subject

2014-08-26 Thread Dr. Tarique Sani
Trying something very simple here In my Listener I am trying to get $event->subject()->id but I keep getting Table "App\Model\Table\PostsTable" is not associated with "id" What am I missing here? Tarique -- = Hire a CakePHP dev te

Re: CakePHP 3.0.0-beta1 released

2014-08-26 Thread Dr. Tarique Sani
API unless we > found bugs or problems that would impede a happy future for this version. > The on;y directory change that you can expect is that we are moving > Console/Command to just Shell > > On Monday, August 25, 2014 5:17:58 AM UTC+2, Dr. Tarique Sani wrote: >> >> Grea

Re: CakePHP 3.0.0-beta1 released

2014-08-25 Thread Dr. Tarique Sani
I make a distinction between experimenting and building ;-) T On Mon, Aug 25, 2014 at 11:39 AM, Thomas von Hassel wrote: > i have been building stuff for 3 months now ;) > > > On 25 Aug 2014, at 05:17, Dr. Tarique Sani wrote: > > we start building stuff now? > > >

Re: CakePHP 3.0.0-beta1 released

2014-08-24 Thread Dr. Tarique Sani
Great! Now that we are beta can we presume there will be no more directory changes and no more function signature changes? In other words can we start building stuff now? Cheers Tarique On Sat, Aug 23, 2014 at 3:26 PM, José Lorenzo wrote: > The CakePHP core team is excited to announce the firs

Re: Cakephp3 Events and Listeners

2014-08-21 Thread Dr. Tarique Sani
Event listeners are implementations of Cake\Event\EventListener interface also then you have to attach your event - something like // Attach the UserStatistic object to the Order's event manager $statistics = new UserStatistic(); $this->Orders->eventManager()->attach($statistics); See http://boo

Re: Custom FormWidget Vs Custom FormHelper vs ... [Cake 3]

2014-08-06 Thread Dr. Tarique Sani
more. >>> >>> For instance being able to set a class to the container div without >>> having to make a template would be nice ? >>> >>> On 06 Aug 2014, at 13:42, Dr. Tarique Sani >>> wrote: >>> >>> But template is a much c

Re: Custom FormWidget Vs Custom FormHelper vs ... [Cake 3]

2014-08-06 Thread Dr. Tarique Sani
a template would be nice ? >> >> On 06 Aug 2014, at 13:42, Dr. Tarique Sani wrote: >> >> But template is a much cleaner way to do it. Most of the times you can >> just define templates and get away with it. >> >> I am loving it! >> >> T >&g

Re: Custom FormWidget Vs Custom FormHelper vs ... [Cake 3]

2014-08-06 Thread Dr. Tarique Sani
e way it was done in 2.x there are quote a few more hoops to go though > to achieve certain things. > > /thomas > > > On 06 Aug 2014, at 13:30, Dr. Tarique Sani wrote: > > Thanks, but if I look at > > 'inputContainerError' => '{{content}}{{error}}

Re: Custom FormWidget Vs Custom FormHelper vs ... [Cake 3]

2014-08-06 Thread Dr. Tarique Sani
to remove label here... {{content}} has got label inside it. So I should look at coding a custom helper? Tarique On Wed, Aug 6, 2014 at 4:49 PM, José Lorenzo wrote: > Wouldn't that be possible by altering the inputContainer and > inputContainerError templates? > > > O

Custom FormWidget Vs Custom FormHelper vs ... [Cake 3]

2014-08-06 Thread Dr. Tarique Sani
Hi, Playing around with form helpers and form widgets in Cake 3 Is there a way to override the Basic Widget with my custom Basic Widget and have options 'error'=>false, 'label'=>false by default? OR this can't be done in the widget and will have to go into my custom form helper TIA Tarique

Re: CakePHP 3.0 - Correct way to append / prepend HTML on FormHelper

2014-08-04 Thread Dr. Tarique Sani
27; is that I > need to insert HTML inside the HTML generated by the 'input' method: > > > Mail > > > > > > On Monday, August 4, 2014 1:07:16 PM UTC+2, Dr. Tarique Sani wrote: > >> >> @ This part of the input group >> i

Re: CakePHP 3.0 - Correct way to append / prepend HTML on FormHelper

2014-08-04 Thread Dr. Tarique Sani
a custom helper. > > Actually, this is a plugin, so I just want it to be easy to use, even if > it's not easy to write (well, my code is currently working so it is not > that hard). I think it's easier to write: > > echo $this->Form->input('field', ['p

Re: CakePHP 3.0 - Correct way to append / prepend HTML on FormHelper

2014-08-03 Thread Dr. Tarique Sani
If I were to do it I would leave the HTML which is before and after the input tag out of the FormHelper - Keep it simple... T On Fri, Aug 1, 2014 at 8:25 PM, Mikaël Capelle wrote: > Thanks for the link! Unfortunately it doesn't help since it does not allow > user to create bootstrap 'input-

Re: Model Validation

2014-07-30 Thread Dr. Tarique Sani
Start here http://bit.ly/UKovlN If you get stuck with a method you choose ask further questions. Tarique On Wed, Jul 30, 2014 at 2:40 PM, Sudhir Pandey wrote: > How can I perform cakephp Model validation using ajax & shows error > message. > > I have already set the error message in controlle

Re: CakePHP 3.0.0-alpha2 released

2014-07-28 Thread Dr. Tarique Sani
> I'll probably start on it very soon as most of the 'big' work items I > wanted to get done for 3.0 are now complete. > > Awesome! -- = The Conference Schedule Creator : http://shdlr.com PHP for E-Biz : http://sanisoft.com ==

Re: CakePHP 3.0.0-alpha2 released

2014-07-28 Thread Dr. Tarique Sani
Hey Mark, I know it will be done when it is done but can't resist asking none the less - any ETA on the Debug Toolkit for v3 ? TIA Tarique On Mon, Jul 28, 2014 at 12:43 PM, José Lorenzo wrote: > The CakePHP core team is proud to announce the immediate availability of > CakePHP > 3.0.0-alpha

Re: Support for multilanguage in Cakephp3

2014-07-24 Thread Dr. Tarique Sani
http://book.cakephp.org/3.0/en/core-libraries/internationalization-and-localization.html Let us know what did not work for you T On Thu, Jul 24, 2014 at 8:17 PM, Jipson Thomas wrote: > Hello, > Would you please help me find some tutorial on multilingual option for my > new website on cakephp

Re: CakePHP custom folder structure

2014-07-24 Thread Dr. Tarique Sani
If you are starting then start from http://book.cakephp.org/3.0/en/index.html T On Thu, Jul 24, 2014 at 6:22 AM, Sunil Shah wrote: > Hi I am having a problem in understanding cakephp. I do not know what is > this git repository. Here is the link: https://github.com/cakephp/app. I > am a develo

Re: CakePHP Set Indian TimeZone

2014-07-24 Thread Dr. Tarique Sani
RTFM here http://php.net/manual/en/timezones.asia.php T On Thu, Jul 24, 2014 at 10:21 AM, Sadikhasan Palsaniya < sadikhasan.palsan...@slktechlabs.com> wrote: > How to set Indian TimeZone? > > In /Config/Core.php > > date_default_timezone_set('+5:30'); > > But It display UTC time how can Change

Re: Making Paginator templates work with themes [CakePHP 3]

2014-07-19 Thread Dr. Tarique Sani
ight now, please open a ticket. > It definitely seems like something we need to support > > On Saturday, July 19, 2014 5:32:01 AM UTC+2, Dr. Tarique Sani wrote: >> >> Don't know if this is a bug or a feature but I am trying to make >> Paginator templates work with themes

Making Paginator templates work with themes [CakePHP 3]

2014-07-18 Thread Dr. Tarique Sani
Don't know if this is a bug or a feature but I am trying to make Paginator templates work with themes I have to put the following in the AppController of the main program to make it work. public $helpers = [ 'Paginator' => ['templates' => 'Twit.paginator-templates.php'] ]; If I p

Re: Recurring Period

2014-07-15 Thread Dr. Tarique Sani
Start here http://book.cakephp.org/2.0/en/console-and-shells/cron-jobs.html T On Tue, Jul 15, 2014 at 9:23 AM, Frank Hassani wrote: > Hi, > I want to create recurring entries in my app. I was wondering if someone > knows about a snippet for the interface that i could use ? Google didn't > find

Re: CakePHP for beginner

2014-07-15 Thread Dr. Tarique Sani
Which books have you read? Have you tried the tutorial at http://book.cakephp.org/2.0/en/tutorials-and-examples.html ? T On Tue, Jul 15, 2014 at 11:22 PM, sajju wrote: > I'm sorry if I'm posting this in a wrong place. The thing is, I'm a > beginner to CakePHP and wanna learn more. Read CakeBo

Re: 3.x - SecurityComponent and View Cell

2014-07-14 Thread Dr. Tarique Sani
FWIW +1 to not breaking forms On Tue, Jul 15, 2014 at 2:35 AM, José Lorenzo wrote: > Not as of now. Cells do not share the same view instance, so the Form > helper instance will actually be different. There is a ticket opened about > making cells share the same view instance and we are evaluati

Re: Want to be inspired and inspire great developer? Attend CakeFest this year :P

2014-07-14 Thread Dr. Tarique Sani
day, July 14, 2014 2:02:00 PM UTC+2, Dr. Tarique Sani wrote: > >> Someday... Some year... #sigh >> >> >> On Mon, Jul 14, 2014 at 5:13 PM, José Lorenzo wrote: >> >>> Hey guys! >>> >>> I wanted to personally reach out and ask how many of you

Re: Want to be inspired and inspire great developer? Attend CakeFest this year :P

2014-07-14 Thread Dr. Tarique Sani
Someday... Some year... #sigh On Mon, Jul 14, 2014 at 5:13 PM, José Lorenzo wrote: > Hey guys! > > I wanted to personally reach out and ask how many of you are attending > CakeFest this year. I'm pretty much looking > forward meeting face to face the people in this commun

Re: CakePHP 2.5, HABTM save data combining selected data and from multiple inputs

2014-07-13 Thread Dr. Tarique Sani
Mails like these end up in SPAM on Gmail. Use text instead or HTML , you will probably get more replies T On Fri, Jul 11, 2014 at 9:37 PM, Salines wrote: > I have habtm relationship between articles and tags. This works correctly. > > Now in my Articles/admin_add.ctp want beside multiple selec

Re: User being logged out from iOS on missing image

2014-07-08 Thread Dr. Tarique Sani
How is the authentication handled in the API? API's should have a stateless authentication. Web browsers maintain a session via cookies. API should not be needed to do that T On Fri, Jul 4, 2014 at 5:37 PM, Jeremy Burns wrote: > We've had an error that took a while to trace, and whilst we've s

Re: CakePHP Queue Plugin

2014-07-04 Thread Dr. Tarique Sani
what exactly is your reason to re-invent the wheel? As you already note Gearman, Beanstalk or dropr et:al; already exist and do a great job.. Tarique On Fri, Jul 4, 2014 at 3:40 PM, euromark wrote: > In that case a "pulling" queue might not be the best approach. > You can only try to shorten t

Re: V3.0 Custom validation messages

2014-03-18 Thread Dr. Tarique Sani
;My Custom message'); > > This deprecates the use of the 'notEmpty' rule. > > > On Friday, March 14, 2014 12:55:58 PM UTC+1, Dr. Tarique Sani wrote: > >> Thanks a lot José, would be interesting to compare what you do with what >> I was going to do :) >>

Re: CakePHP 3.0.0 development preview 2 released

2014-03-14 Thread Dr. Tarique Sani
Hey Christopher, The Table and Entity classes are still automagically included in the controller if you follow the naming conventions. Cheers Tarique On Fri, Mar 14, 2014 at 5:43 PM, Christopher Castro wrote: > I see. > No really, no particular reason. > I just like the model autoloading featu

Re: V3.0 Custom validation messages

2014-03-14 Thread Dr. Tarique Sani
ting a solution and providing > documentation for it soon. > > > On Friday, March 14, 2014 10:10:18 AM UTC+1, José Lorenzo wrote: >> >> Sure, I think github is a better place to track this problem >> >> On Friday, March 14, 2014 7:56:40 AM UTC+1, Dr. Tarique Sani wrot

Re: V3.0 Custom validation messages

2014-03-13 Thread Dr. Tarique Sani
st->data); Validation is completely skipped. I traced it till the _addValidatorProps in http://api.cakephp.org/3.0/source-class-Cake.Validation.ValidationRule.html#171-190and then ran out of time... Should I file this on github? Cheers Tarique On Fri, Mar 14, 2014 at 8:46 AM, Dr.

Re: V3.0 Custom validation messages

2014-03-13 Thread Dr. Tarique Sani
. > > > On Thursday, March 13, 2014 6:07:47 AM UTC+1, Dr. Tarique Sani wrote: >> >> My AtriclesTable has >> >> >> public function validationDefault($validator) { >> $validator >> ->add('title', 'not-Empty

Re: V3.0 Custom validation messages

2014-03-13 Thread Dr. Tarique Sani
ict warning you need: > > use Cake\Validation\Validator; > > class ArticlesTable extends Table { > > public function validationDefault(Validator $validator) { > ... > > > On Thursday, March 13, 2014 6:07:47 AM UTC+1, Dr. Tarique Sani wrote: >> >> My Atricle

V3.0 Custom validation messages

2014-03-12 Thread Dr. Tarique Sani
My AtriclesTable has public function validationDefault($validator) { $validator ->add('title', 'not-Empty', [ 'rule' => 'notEmpty', 'message' => 'You need to provide a title', ]) ->add('body', 'not-Empty', [

Re: Is Cake Dead Or Just Catching Up?

2014-03-12 Thread Dr. Tarique Sani
There are enough plugins available out there, we will > most probably endorse one and encourage its use. > - Validation as a service: Already done! > > I'm glad to have you back! Is there anything in cake 3 that makes you > thing he are ahead? > > > On Wednesday, Marc

Re: Is Cake Dead Or Just Catching Up?

2014-03-12 Thread Dr. Tarique Sani
tter? > > > On Tuesday, March 11, 2014 10:24:44 AM UTC+1, Dr. Tarique Sani wrote: > >> > But I seem to notice less and less so I was only wondering if people >> are jumping ship and moving on to other frameworks. >> >> >> Then this would be a wrong place to

Re: V3.0 - saving fails...

2014-03-12 Thread Dr. Tarique Sani
;>> know what properties can be assigned by newEntity: >>> >>> class Article extends Entity { >>> >>> protected $_accessible = ['title' => true, 'body' => true]; >>> >>> } >>> >>> or if yo

Re: V3.0 - saving fails...

2014-03-12 Thread Dr. Tarique Sani
t don't care (not recommended): > > class Article extends Entity { > > protected $_accessible = ['*' => true]; > > } > > The latter can be seen as a Eloquent::unguard(); > > On Wednesday, March 12, 2014 6:30:45 AM UTC+1, Dr. Tarique Sani wrote: >

Re: V3.0 - saving fails...

2014-03-12 Thread Dr. Tarique Sani
cessible = ['title' => true, 'body' => true]; > > } > > or if you just don't care (not recommended): > > class Article extends Entity { > > protected $_accessible = ['*' => true]; > > } > > The latter can be seen as a Eloqu

V3.0 - saving fails...

2014-03-11 Thread Dr. Tarique Sani
Wonder why saving is failing I am doing $article = $this->Articles->newEntity($this->request->data); if ($this->Articles->save($article)) { $this->Session->setFlash(__('Your article has been saved.')); return $this->redirect(['action' => 'index']); } $this->Sessi

Re: Is Cake Dead Or Just Catching Up?

2014-03-11 Thread Dr. Tarique Sani
> But I seem to notice less and less so I was only wondering if people are jumping ship and moving on to other frameworks. Then this would be a wrong place to ask ;-) Tarique On Tue, Mar 11, 2014 at 1:21 PM, Advantage+ wrote: > In no way am I putting Cake down, I love Cake and use it for al

Re: Is Cake Dead Or Just Catching Up?

2014-03-10 Thread Dr. Tarique Sani
CakePHP is far from dead. Have been hearing about since a few years now ;-) Not a flame bait but anyone here remembers Lithium? The dev team is busy putting finishing touches to version 3.0 which promises to be a huge leap. I will confess that I did wander over to Laravel land but I am back. There

Re: Automagic in CakePHP 3.x

2014-03-10 Thread Dr. Tarique Sani
equivalent to doing: > > if ($this->Posts->validate($entity)) { > ... do something after validation ... > } > > Which seems more terse to me. > > > On Monday, March 10, 2014 7:36:24 AM UTC+1, Dr. Tarique Sani wrote: > >> I was just thinking something like &

Re: Automagic in CakePHP 3.x

2014-03-09 Thread Dr. Tarique Sani
I was just thinking something like if ($this->validation->passes()) { do save or whatever } Anyway - nice to know that we will have automatic loading of Model and Table classes. In fact I can confirm that if there is a PostsTable.php with appropriate code it is available to the PostsController an

Re: Automagic in CakePHP 3.x

2014-03-07 Thread Dr. Tarique Sani
the named validator? > > On Friday, March 7, 2014 4:24:30 AM UTC+1, Dr. Tarique Sani wrote: >> >> How much of the controller <-> model/orm automagic make it to the final >> release. Particularly things like Post is automatically available in Posts >> controller..

Automagic in CakePHP 3.x

2014-03-06 Thread Dr. Tarique Sani
How much of the controller <-> model/orm automagic make it to the final release. Particularly things like Post is automatically available in Posts controller... Ideally I would like to see similarly named validator also included automagically I am somehow suspecting that the answer will be "not mu

Re: CakePhP Views

2014-03-04 Thread Dr. Tarique Sani
> Does ALL of the HTML go into the view? Yes. Speed read this http://book.cakephp.org/2.0/en/views.html and ask further questions Tarique On Tue, Mar 4, 2014 at 2:34 AM, Justin Masse wrote: > I'm trying to speed-learn cakePHP since we are using it for a project and > I have NO previous experi

Re: How to Creating your own view classes with example.

2014-03-03 Thread Dr. Tarique Sani
Start here http://book.cakephp.org/2.0/en/views.html#creating-your-own-view-classes Where are you stuck? Tarique On Mon, Mar 3, 2014 at 3:51 PM, Mukesh Kumar wrote: > I what to create custom view for my project. can anyone help pls. > > -- > Like Us on FaceBook https://www.facebook.com/CakePHP

Re: Boris REPL with 3.x

2014-03-02 Thread Dr. Tarique Sani
gt; > You will be able to execute Console/cake console afterwards > > > On Friday, February 28, 2014 10:38:27 AM UTC+1, Dr. Tarique Sani wrote: >> >> Can anyone give a quick update on what is the status of Boris in CakePHP >> 3.x >> >> Wanted to play around wit

Re: PHP IDE

2014-03-02 Thread Dr. Tarique Sani
Not really an IDE but for me SublimeText is the editor of choice since some time now Cheers Tarique On Sun, Mar 2, 2014 at 2:38 PM, Thomas von Hassel wrote: > Tangentially related to CakePHP, but what IDE (if any) are you guys using > these days ? > > /thomas > > -- > Like Us on FaceBook http

Re: 3.0 - Acl

2014-02-28 Thread Dr. Tarique Sani
Great! Is a replacement proposed? Something like Sentry 2 package? Tarique On Friday, February 28, 2014, José Lorenzo wrote: > It is not. The database version of ACL will be probably removed from cake > 3 as it has proven to be an over complication for the great majority of > cases. > > On Thur

Re: Boris REPL with 3.x

2014-02-28 Thread Dr. Tarique Sani
nsole/cake console afterwards > > On Friday, February 28, 2014 10:38:27 AM UTC+1, Dr. Tarique Sani wrote: >> >> Can anyone give a quick update on what is the status of Boris in CakePHP >> 3.x >> >> Wanted to play around with the new ORM - a few quick lines on somet

Re: Dynamic menu content in layout

2014-02-28 Thread Dr. Tarique Sani
What you are really wanting is the ViewModel. CakePHP does not implement that explicitly but you can get the same functionality by creating a helper and accessing your model in the helper keeping the view clean. HTH Tarique On Thu, Feb 27, 2014 at 1:09 AM, Sam Clauw wrote: > Okay, let's supp

Boris REPL with 3.x

2014-02-28 Thread Dr. Tarique Sani
Can anyone give a quick update on what is the status of Boris in CakePHP 3.x Wanted to play around with the new ORM - a few quick lines on something which works would be appreciated. Cheers Tarique -- = The Conference Schedule Creator

Re: I am new in Cakephp

2012-12-17 Thread Dr. Tarique Sani
http://book.cakephp.org/2.0/en/index.html <- start here T On Mon, Dec 17, 2012 at 1:22 PM, Rakesh Dongarwar < rakeshdongarw...@gmail.com> wrote: > Hey Hi Guys > > I am very new in cakephp. From last 3 years i have worked on core php. so > anyone can teach me cakephp?? > > > > Kind Regards, > Ra

Re: Wordpress in Cake.

2012-12-05 Thread Dr. Tarique Sani
You can use whatever you want from anywhere - as long as you include the correct files It is possible to install in webroot but I personally do not like messing up app/webroot/ with other programs Tarique On Wed, Dec 5, 2012 at 4:17 PM, Serkan Sipahi wrote: > i want to use cake utilities in wor

Re: Returning false in beforeDelete kills deleteAll?

2012-12-05 Thread Dr. Tarique Sani
It is a feature. You can code your own loop if you want Tarique On Wed, Dec 5, 2012 at 8:49 AM, Benjamin Allison wrote: > The problem is that "return false" stops deleteAll completely. My > understanding was that deleteAll would simply move along to the next record. --

Re: Wordpress in Cake.

2012-12-05 Thread Dr. Tarique Sani
Place /blog parallel to /app if you have that kind of setup (most common) In .htaccess add RewriteRule (blog/.*) $1 [L] Tarique On Wed, Dec 5, 2012 at 3:25 PM, Serkan Sipahi wrote: > Hi all, > > what is the best solution to integrate Wordpress in CakePHP? > > -- ===

Re: How to raise Auth failed

2012-10-17 Thread Dr. Tarique Sani
On Thu, Oct 18, 2012 at 11:20 AM, Sanjeev Divekar wrote: > Hello, > > I want to restrict user doing some action of authentication is not done. > > function display($id=1) { > $page = $this->Page->read(null,$id); > if(!$this->Session->check('Auth.User') && > $page['Page']['authentication_required']

Re: Calling view in element

2012-10-11 Thread Dr. Tarique Sani
On Thu, Oct 11, 2012 at 6:55 PM, Sanjeev Divekar wrote: > Hello, > > I want to call index.ctp in element so i can call element anywhere in > application. e.g. contact_form element which uses ajax form submit. Start by going thru http://book.cakephp.org/2.0/en/views.html#using-view-blocks HTH Ta

Re: Doubt regarding integrating cakephp and javascript mv framework

2012-10-11 Thread Dr. Tarique Sani
On Thu, Oct 11, 2012 at 3:12 PM, Sathia S wrote: > >> I would develop the javascript MVC application to be independent of >> the CakePHP application and not try to put the js MVC into the webroot >> of the cakePHP app >> >> So it would be easier if you think of your project as two separate >> proj

Re: Doubt regarding integrating cakephp and javascript mv framework

2012-10-10 Thread Dr. Tarique Sani
I would develop the javascript MVC application to be independent of the CakePHP application and not try to put the js MVC into the webroot of the cakePHP app So it would be easier if you think of your project as two separate projects. Most jsmvc frameworks just expect URL endpoints to get and pos

Re: How to use blocks?

2012-10-07 Thread Dr. Tarique Sani
Have you actually tried writing some code as explained in the book? If yes then show us the code Tarique On Sun, Oct 7, 2012 at 11:26 AM, Advantage+ wrote: > I cannot seem to figure this out. -- = The Conference Schedule Creator : ht

Re: What about plugin installer?

2012-10-05 Thread Dr. Tarique Sani
On Sat, Oct 6, 2012 at 8:54 AM, kani wrote: > Is there someone has an idea or started work? We had managed to do it in Cheesecake-Photoblog project which was maintained upto CakePHP 1.3 Users could upload zips of plugins - I can dig out the code if nothing more recent turns up Cheers Tarique

Re: new site made with cakephp

2012-10-03 Thread Dr. Tarique Sani
On Thu, Oct 4, 2012 at 3:21 AM, Michael Connors wrote: > New site made with cake. http://www.morguefile.com Nice looking site - you will get more traction here if you present some of the technical challenges you over came.. Cheers Tarique -- =

Re: Payment with PayPal

2012-09-26 Thread Dr. Tarique Sani
On Thu, Sep 27, 2012 at 2:17 AM, Salvatore wrote: > Hello guys, > I looking for a plugin for payment with PayPal with CakePHP 2.0 that works. > I tried some plugins but all have some problem! > > Can you suggest me somethings ? Yes fix the problems in existing open source plugins and contribute i

Re: Image gallery using cakephp and flickr

2012-09-22 Thread Dr. Tarique Sani
On Sat, Sep 22, 2012 at 4:31 PM, vicky wrote: > Trying to do gallery using cakephp and flickr with this link > > http://www.sitepoint...akephp-flickr/# > > I am getting > > Error: Class 'phpFlickr' not found That is a 5 year old tutorial a lot has changed since then. However if you must, to impor

Re: CakeDC Tags Plugin - recursive problem

2012-09-22 Thread Dr. Tarique Sani
On Sat, Sep 22, 2012 at 2:39 PM, jonoa wrote: > My model relationships: > > Product belongsTo Store, Collection > Collection hasMany Product > Store hasMany Product Isn't the plugin supposed to work with HABTM relationships only? I don't see any HasAndBelongToMany in your set up... Cheers Tariqu

Re: Web testing in Cake 2

2012-09-21 Thread Dr. Tarique Sani
Guess you can just use the Selenium extension for PHPUnit if you want full functional tests I find ControllerTestCase adequate for most unit tests Tarique On Fri, Sep 21, 2012 at 3:18 PM, Paul Filippi wrote: > Hey there, > > I just started using Cake 2. > I understand there was a web testing fr

Re: How can i export report in pdf format?

2012-09-20 Thread Dr. Tarique Sani
On Thu, Sep 20, 2012 at 1:41 PM, Prarinthon Ajinajarn wrote: > i have this before but dont understand iam very newly start in cake i read > and dont know how to do plugin Read http://book.cakephp.org/2.0/en/plugins.html Tarique -- = h

Re: How can i export report in pdf format?

2012-09-20 Thread Dr. Tarique Sani
On Thu, Sep 20, 2012 at 12:06 PM, Prarinthon Ajinajarn wrote: > i dont know what library or plugin can someone tell me thanks https://github.com/ceeram/CakePdf seems like a good start Tarique -- = http://shdlr.com Conference schedulin

Re: Cakephp, gearman workers and changing database connection on the fly issue

2012-09-17 Thread Dr. Tarique Sani
Looks fine... No more ideas - sorry T On Mon, Sep 17, 2012 at 10:18 AM, Ketan Shah wrote: > Thanks Tarique, > > Here you go. http://pastebin.com/ezCBqyGV > > On Mon, Sep 17, 2012 at 10:10 AM, Dr. Tarique Sani > wrote: >> >> On Sat, Sep 15, 2012 at 6:46 PM,

Re: Cakephp, gearman workers and changing database connection on the fly issue

2012-09-16 Thread Dr. Tarique Sani
On Sat, Sep 15, 2012 at 6:46 PM, Ketan Shah wrote: > Thats correct. I am sending the db config info in the workload Paste the code that you are using to change the DB This should not happen because every workload is processed in its own thread and they do not share anything. The DB connection sh

Re: Cakephp, gearman workers and changing database connection on the fly issue

2012-09-15 Thread Dr. Tarique Sani
Are you sending which DB to use in the workload and then switching the DB in the worker accordingly? T On Sat, Sep 15, 2012 at 9:59 AM, Ketan wrote: > howdy! > > We have created a SaaS app using cakephp 1.3 which is pulling in data from a --

Re: Create database table using controller.

2012-09-04 Thread Dr. Tarique Sani
On Sun, Feb 28, 2010 at 3:04 PM, veepee wrote: > I've found the problem. > It is caused by the listsources() method in cakephp has cached the Right! and listsources() reads the list from a cache file similar to myapp_cake_model_default_pathname_list This cache file is updated/created when a page

  1   2   3   4   5   6   7   8   9   10   >