News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

SaniSoft Blog:
The prefix automagic in CakePHP routing
April 09, 2008 @ 13:06:18

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.

0 comments voice your opinion now!
cakephp framework prefix routing magic connect


blog comments powered by Disqus

Similar Posts

Debuggable Blog: How to have multiple paginated widgets on the same page with CakePHP

PHPHacks.com: 10 PHP Frameworks compared

PHPMaster.com: Living Apart Together: Decoupling Code and Framework

Debuggable Blog: Code Coverage Analysis soon in CakePHP - Test How Well You Test

Chris Hartjes' Blog: The Devilís In The Details (or, Handling Sequences in Postgres in CakePHP)


Community Events





Don't see your event here?
Let us know!


podcast security package version symfony introduction composer voicesoftheelephpant update series community opinion library tool language interview install laravel release framework

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