Posted on December 17, 2008 by ragrawal
One of the challenges in developing ajax application using CakePHP is to figure out how to load ajax view (interface) for first time and request only data (json or XML) in subsequent ajax calls. Luckily, with CakePHP this is simple and you really don’t need to write many different functions. The trick is to use [...]
Filed under: CakePHP, General | Tagged: Ajax, CakePHP | 4 Comments »
Posted on December 16, 2008 by ragrawal
While defnining “belongsTo” association in CakePHP 1.2, there are five keys that you can used (to read more about association or belongsTo, checkout this page) . The five keys are className, foreignKey, conditions, fields, counterCache. In general, if you have followed CakePHP conventions, you wont need any other key. However, today I stumbled across a [...]
Filed under: CakePHP | Tagged: association, belongsTo, CakePHP | 12 Comments »
Posted on December 13, 2008 by ragrawal
A tutorial on how to integrate CakePHP and ExtJS. Demonstrates the integration of the two using the example of a simple user registration form. Also shows how to load data and validation errors returned by the server
Filed under: CakePHP, ExtJS | Tagged: CakePHP, DataValidation, ExtJS, User Registration | 9 Comments »
Posted on July 1, 2008 by ragrawal
This post lists down steps for migrating from OthAuth component to CakePHP’s inbuild Authentication component (Auth Component).
Note about using these migration steps: I used OthAuth mainly for authentication purposes i.e. mainly for verifying a username and password. I never got involved with complex authorization. So, these steps are only applicable if you are using Auth component withouth ACL.
1. In [...]
Filed under: CakePHP | Tagged: Auth Component, AuthHelper, CakePHP 1.2, OthAuth | 1 Comment »
Posted on February 15, 2008 by ragrawal
When developing a web application, one has to be careful about the “character encoding”. There are many options such as latin1, utf8, etc, and the best character encoding depends on the language that your targeted audience use for writing. Since most web applications are required to handle all types of languages and, thus, are required to handle all different types [...]
Filed under: CakePHP, Database, MySQL, PHP, Web | Leave a Comment »