Because of its being more flexible, extensible and precise nature the jQuery certainly has emerged as a more popular Javascript library as compared to prototype library. If you plan your Cakephp application depend heavily on Javascript, its right time to…
Category: CakePHP
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…
More shorter way to load models on the fly
This post has been marked as deprecated. You can use “loadModel” controller method to load models on the fly. For more information of this method please visit http://api.cakephp.org/class/controller#method-ControllerloadModel. Thank you.
Disable CakePHP debug output when using Ajax
While developing a CakePHP application and debug value set to greater than 0(zero) (development mode) we may want to show our Ajax results clean i.e. without debug information (in form of SQL log etc.) attached to it.
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…
Useful string manipulation helpers in CakePHP
CakePHP comes with a bunch of useful helpers and components which provide handy tools for processing and manipulating data. These helpers are not only the valuable assets for the a framework user, but can be of great help to someone…
getid3 component for cakephp
What is getID3? getID3() is an open-source, cross-platform software library for the PHP language written by James Heinrich and Allan Hansen. getID3() can extract information from multimedia file formats: audio, video and images in various formats. Information extracted includes playtime,…
Passed arguments routing and custom ajax pagination url in cakephp
While working in my recent “charity project” i had to list all charities found in a particular region or state. I created a regions_controller and an index function in it to fetch and set records and index.ctp as a view…