Individuell bin ich in der Lage mit Hilfe controller.For Beispiel cakephp Standard-Layout zu ändern, die ichWie cakephp default.ctp Layout-Verzeichnis zu ändern?
verwendet habepublic function login() {
$this->layout="make"; //here I have changed layout for single action
if ($this->request->is('post')) {
//some code...
}
}
Hier habe ich geändert Layout !! Aber das Problem ist, dass dieses Layout nicht Standard ist. Ich möchte dieses Layout für alle Controller anwenden. Wie kann ich das tun?
tun Sie es in Ihrem AppController – arilia
Details bitte.In AppController wie? –