// archives

cakephp

This tag is associated with 3 posts

CakePHP site redesign for 1.2 release ?? !!

A week or 2 ago the appearance of the bin changed from to  . Today Trac was offline for a couple of hours and when it came back looked like this: Would this be the redesign for the CakePHP 1.2 release ??

CakePHP: Calling bake from every dev-app install folder

If you use a setup like I explained in my previous post calling the bake script involves a lot of typing with the core and app parameter paths. If I want to call the bake script from the /Users/mwesten/Sites/dev/myapp cake app folder, it has to be done like this:

CakePHP: Central cake core install with multiple apps

When developing on my system I like to use only one version of the core files. If I update the core files from svn it gets updated for all apps I’m working on. The way I’m using this is explained below: In my web-root I do an svn export of cake latest: cd /Users/mwesten/Sites svn [...]

CakePHP on OSX: Problem using Bake.php script

If you are getting the following errors while trying to bake something on osx 10.4: "Warning: mysql_connect(): Can’t connect to local MySQL server through socket ‘/var/mysql/mysql.sock’ (2) in /Library/WebServer/Documents/development/bakery/cake/libs/model/dbo/dbo_mysql.php on line 117" try doing the following: sudo ln -s /tmp /var/mysql Or you could follow the instruction given by Apple: Mac OS X Server 10.4: [...]

CakePHP 1.2: “Model/field” in formhelper deprecated

As cakebaker states: The use of “Model/field” in the formhelper has been deprecated in CakePHP 1.2. In CakePHP 1.1 you would call: $form->input(’Post/title’); In CakePHP 1.2 this has to be written like: $form->input(’Post.title’);

Automatic updating Select boxes with Ajax

Othman Ouahbi has a very nice example on his blog on creating automatic updating select-boxes with Ajax. If you change the first select-box, it updates the next selectbox accordingly.

Nice writeup of Ajax use in CakePHP

Ahsanul Bari created a nice list of links to articles on the use of Ajax in CakePHP. Some of the parts covered are: Getting Started AutoComplete Ajax Redirect Ajax Validation Encoding Ajax Uploader So head over to Ahsan’s Laboratory and distover how to implement some nice ajax stuff in your web-app!

CakePHP 1.2: $html->link with html or image.

In CakePHP 1.1 if you need to display an image or piece of HTML with a link to an action, you need to instruct cake NOT to escape the contents of the “Title” attribute with the last false statement like this: e( $html->link( $html->image("add.gif"), array(’action’ => ‘add’), array(), null, false )); In CakePHP 1.2 you [...]

CakePHP 1.2: redirect method

Previously (in CakePHP 1.1) it was best to add an exit or return after you redirect method like: $this->redirect(’controller/action’); exit(); or $this->redirect(’controller/action’); return(); in CakePHP 1.2 this can be shortened to: $this->redirect(’controller/action’, null, true); See cakebaker on this too.