Hi all, I have baked up a couple of simple controllers/models to add
news stories and the like to an app I am building (for no other reason
than to learn the ropes)
I want the administrator to be able to type www.siteurl.ie/admin and
be directed to a log in. I want there to be a dashboard with all the
CRUD functions available to the administrator after they successfully
log in
but I aint having much fun.
This is what Ive done:
turned on admin routing in config file
set up a controller called: administrators_controller.php
added the route: Router::connect('/admin', array('controller' =>
'administrators', 'action' => 'dashboard', 'admin' => true));
and set up dashboard method in my administrators controller
so now, when I go to www.siteurl.ie/admin it forwards me to the
dashboard view, no problem.
BUT when I try to do something like: www.siteurl.ie/admin/news/add I
get:
Error: AdminController could not be found.
Error: Create the class AdminController below in file: app\controllers
\admin_controller.php
<?php
class AdminController extends AppController {
var $name = 'Admin';
}
?>
any ideas?
Thanks (in advance)
Kev
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---