You should be able to do this by simply replacing this part of app/config/routes.php
:
/**
* Here, we are connecting '/' (base path) to controller called 'Pages',
* its action called 'display', and we pass a param to select the view file
* to use (in this case, /app/views/pages/home.ctp)...
*/
Router::connect('/', array('controller' => 'pages', 'action' => 'display', 'home'));
.. with something like this:
/**
* Here, we are connecting '/' (base path) to controller called 'Users' and
* its action called 'dashboard' (ie. /users/dashboard)...
*/
Router::connect('/', array('controller' => 'users', 'action' => 'dashboard'));
I sense a slight misunderstanding of the topic when you try to map from '/pages/home
' to your dashboard. '/pages/home
' only seems like the home page because there exists a route for that. If you want to change the homepage, you need to change the existing Router::connect('/', ...)
rule. If you create a new rule for '/
', underneath, it won't be executed as CakePHP will match the first route it finds.