I am working in cakephp, and I have the following two lines in my /app/config/routes.php file:
/** * ...and setup admin routing */ Router::connect(\'/admin/:c
the approaches above are good but if you are looking to change the layout for every page when logged in you might try the following using Auth Component
function beforeFilter() { if ($this->Auth->user()) { $this->layout = 'admin'; } }