Return to Snippet

Revision: 37031
at December 2, 2010 21:22 by LennieZ


Initial Code
function beforeFilter()
{
	if(isset($this->params["prefix"]) && $this->params["prefix"] == "admin")
		$this->layout = "admin";
}

Initial URL

                                

Initial Description

                                

Initial Title
CakePHP admin layout for admin routing

Initial Tags
cakephp, layout

Initial Language
PHP