Posted By

madmanlear on 10/29/08


php cakephp admin cake route

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Advanced Admin Routing in Cake

 / Published in: PHP

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

  1. if(($routing_admin = Configure::read("Routing.admin")) !== null) {
  2. $name = str_replace($routing_admin.'_', $routing_admin.DS, $name);
  3. }

Report this snippet  

You need to login to post a comment.