Revision: 9301
Updated Code
at October 29, 2008 13:54 by madmanlear
Updated Code
if(($routing_admin = Configure::read("Routing.admin")) !== null) { $name = str_replace($routing_admin.'_', $routing_admin.DS, $name); }
Revision: 9300
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at October 29, 2008 13:51 by madmanlear
Initial Code
if(Configure::read("Routing.admin") !== null) { $name = str_replace(Configure::read("Routing.admin").'_', Configure::read("Routing.admin").DS, $name); }
Initial URL
Initial Description
With this code you can pull all admin view files for a particular CakePHP controller in their own admin folder rather than renaming each file admin_whatever. Line 779 in cake/libs/view/view.php
Initial Title
Advanced Admin Routing in Cake
Initial Tags
php, cakephp
Initial Language
PHP