Created
December 6, 2016 18:18
-
-
Save steinkel/503a1aa13d658b4ce69e4694622820ec to your computer and use it in GitHub Desktop.
pick another layout for login page in CakeDC/Users
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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