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…
Tag: CakePHP
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…
Use of custom displayField paramater in CakePHP
The $this->displayField is used to define custom display field while doing ‘list’ or scaffolding in CakePHP. It can be specified either in Model class or just before making a db call.
Using Inflector singularize and camelize for taking out model name in CakePHP
We can use CakePHP library’s Inflector::singularize() and Inflector::camelize() methods for taking out corresponding model name from a controller name (provided we follow CakePHP’s naming conventions well).
Security component black hole, form submit dies on a blank page with no error
The problem started when i used Auth component in my current CakePHP project. Everything seemed working fine until i created an html form, submitted it and tried to retrieve this form’s data in controller action. I tried to print $this->data…
Cakephp pagination and custom named arguments handling
Let’s have a look at the scenario first. I have a “contacts” controller, a “display” action in it(controller) and a view “display.ctp” to show results. As normal my “display” action lists all the contacts by calling $this->set(‘contacts’, $this->paginate(‘Contact’)) inside the…
Simple captcha component for CakePHP 1.x
Updated on – April 11, 2013 Download Captcha Component for CakePHP 1.x Download Captcha Component for Cakephp 2.x Model validation to validate captcha field value included with examples. Functions(rules) required for model validation are also written in the model file.…
Customizing mysql query of a bound model
I had a hasAndBelongsToMany binding in my Charity Model as i normally would need all the “Causes” available along with Charity information and vice-versa. At one place i needed a specific number of “Causes” picked randomly from the database table.…
Creating Ajax form in Cakephp (with Prototype.js)
(If you are using jQuery with cakephp you may want to view this article, Creating Ajax form in Cakephp using jQuery ) With the help of prototype/JavaScript we can build really cool and fully functional ajax form in CakePHP really…
What do you hate about CakePHP?
After looking at an interesting Google group topic Poll: what do you hate about CakePHP? i have tried to sum up the facts which people reasoned for hating/disliking CakePHP. Please be noted that all the facts listed here are based…