// archives

PHP

This tag is associated with 3 posts

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.