News Feed
Sections
News Archive


Community Events






feed this:

SaniSoft Blog:
The prefix automagic in CakePHP routing
0 comments :: posted Wednesday April 09, 2008 @ 13:06:18
voice your opinion now!

On the SaniSoft blog, Tarique Sani talks briefly about some of the prefix "automagic" that's already built in to the CakePHP framework's routing.

There are times when you need more than just admin routing, how about something like http://blah.com/user/profiles/edit and http://blah.com/user/profiles/changepassword ? If this could be routed to an action like user_add and user_changepassword wouldn't it be great!! (eg: think ownership ACL checks)

Good thing the CakePHP developers already planned for something like this - they included the connect() method for Router objects that maps the URL request to a method with that same prefix in the controller.

tagged with: cakephp framework prefix routing magic connect



pecl application developer release conference releases security zend PHP5 mysql code cakephp PEAR ajax book framework package database job zendframework

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework