Skip to content

Instantly share code, notes, and snippets.

@steinkel
Created December 6, 2016 18:18
Show Gist options
  • Save steinkel/503a1aa13d658b4ce69e4694622820ec to your computer and use it in GitHub Desktop.
Save steinkel/503a1aa13d658b4ce69e4694622820ec to your computer and use it in GitHub Desktop.
pick another layout for login page in CakeDC/Users
public function beforeRender(Event $e)
{
if ($this->request->param('action') === 'login' &&
$this->request->param('controller') === 'Users' &&
$this->request->param('plugin') === 'CakeDC/Users'
) {
$this->viewBuilder()->layout('login');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment