to an admin index page. I am having some trouble making this work
correctly. I do have admin routing activated, with 'admin' as the
prefix. Here are the routes, listed in order, in my routes.php page:
Router::connect('/', array('controller' => 'mycontroller',
'action' => 'index'));
Router::connect('/admin', array('controller' => 'pages',
'action' => 'index', 'admin' => true));
Router::connect('/pages/*', array('controller' => 'pages', 'action'
=> 'display'));
I took the pages_controller.php from my cake/lib/controllers
directory, copied it to my app/controllers directory, and added a
function called admin_index() at the end of it. I put a view called
index.ctp in my app/views/pages/admin directory. If anyone has any
ideas, I would really appreciate it.
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment