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
For CakePHP 3.X you should edit your src/View/AppView.php file and add the following code to your initialize() method:
src/View/AppView.php
initialize()
public function initialize() { if ($this->request->getParam('prefix') === 'admin') { $this->layout = 'Plugin.layout'; } }