You will need to add recursive=>(value) to the $params when you need to get a ‘list’ of table items using related model conditions. Referring to the example depicted here, http://book.cakephp.org/view/1022/find-list let’s say you perform the following query:
Category: CakePHP
An example of Google Checkout Integration in CakePHP
NOTE: You will have to make changes into the component code in order to get it working with you application. This is only a sample component and it should not be taken as a plug-and-play kind of component. NOTE: Download…
Cakephp important facts you must know – Part 3
You load a plugin model like this: $this->loadModel(“Forum.Topic”) You output requestAction result using $this->requestAction(array(‘controller’ => ‘articles’, ‘action’ => ‘featured’), array(‘return’)); // see array(‘return’)
A note on difference between app:import and loadmodel in CakePHP
Posting for, someone searched for terms “cakephp what is the difference between app:import model and loadmodel” and “cakephp what is the difference between app:import and loadmodel” and landed on my blog page but unfortunately i could not provide the answer…
SQL dump file for CakeDC comments plugin for CakePHP
If they (CakeDC people) don’t have complaint of any kind or whatsoever i would like to post the SQL dump code for comments table used in CakeDC comments plugin. Especially, those having problems with generating database table or query through…
Auto linking text string having image tags using Text Helper in CakePHP
Recently I found that auto linking urls and emails of a string having image tags within was not possible using text helper in CakePHP. It would try to autoLink url of image src and thus it is broken. I am…
Field type tinyint(1) would not save values other than 0 and 1 in CakePHP
Just a quick note. I had a “is_active” field in my users table which i had been using to store boolean 0 and 1 values. Later, i mean today, i decided to save a new value -1 to this field…
Croogo – A free open source CakePHP powered CMS for PHP
Croogo is a free web based CMS (Content Management System) for PHP built on the top of CakePHP MVC framework. It was first released on October 07, 2009 by Fahad Ibnay Heylaal. It’s latest version is Croogo-1.3.2 and it could…
New improved CakePHP cookbook documentation
Gone are the old days when CakePHP developers would complain about the in-sufficient documentation available in CakePHP. CakePHP community has not only improved existing documentations but going a step further they have added separate tabs for all three main versions…
CakePHP 1.3.4 released, 2.0 on the way!
The CakePHP core team announded the release of CakePHP 1.3.4 recently (on Sep 12, 2010). It was almost within month since the last CakePHP release i.e. 1.3.3. The team announced that there had been a few changes which could affect…