Archive | CakePHP RSS feed for this section

[CakePHP] Custom Configuration variables

TweetMany a times we need to define variables in such a manner that we can use them throughout our application. Some people wrongly call them Global Variables but I guess the right term would be Configuration Settings or Configuration Variables Some examples for such settings are: "From" to be used while sending emails Access keys [...]

Read full story · Comments { 1 }

[CakePHP] Configure cache parameters for core and model

TweetHappy New Year to everyone and welcome to my first post of the year. Many times you need to have a look at total number of seconds taken by SQL queries in a CakePHP application. It's cumbersome to scroll a long list of SQL queries every time and if the application has a lot of [...]

Read full story · Comments { 0 }

[CakePHP - How To] CKFinder configuration management using component

TweetHello guyz, I am back again with an article on CakePHP. This one is related to CKFinder configuration management. CKFinder is a file management plugin for CKEditor using which you can upload new files or use existing files to link in to CKEditor's content. There is a config.php in CKFinder's directory which has many configuration [...]

Read full story · Comments { 0 }

[CakePHP] Sending JSON data in response to a controller action

TweetIn my last post we saw a very simple trick to set javascript variables from controller action so that they are available in the javascript files. On the same lines a very common requirement is sending JSON data as output of the controller action. This is mainly required for those actions which are called by [...]

Read full story · Comments { 4 }