News Feed
Sections
News Archive


Community Events
php|tek 2008 PHP Conference



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


Lars Strojny's Blog:
New magic constant in PHP 5.3
0 comments :: posted Friday February 22, 2008 @ 15:02:00
voice your opinion now!

In this new blog post today, Lars Strojny talks about a new magic constant that will be joining its brothers in the upcoming PHP 5.3 release - __DIR__.

In PHP 5.3 there will be another magic constant __DIR__. [...] To allow this, the internal function php_dirname() has been moved in the Zend Engine and is now called zend_dirname(). Nevertheless an alias still exists.

__DIR__ will join the other constants (like __LINE__ and __FUNCTION__) to help give the currently running script a little introspection for things like its filename, what class it's currently in and now, what directory the file currently lives in.

tagged with: dir magic constant directory php5 new


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

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