Should have waited an extra couple minutes before asking... Solution: As it turns out, instead of putting a view called 'index.ctp' in the app/views/pages/admin directory, I needed to put a view called 'admin_index.ctp' in my app/views/pages directory.
On Mar 2, 2:38 pm, p_W <[email protected]> wrote: > In the Cookbook, it lists this as the way to connect the URL '/admin' > 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
