maiconpinto / cakephp-adminlte-theme

CakePHP AdminLTE Theme
http://maiconpinto.github.io/cakephp-adminlte-theme/
MIT License
174 stars 111 forks source link

How to use login.ctp #90

Closed gunjikamiya closed 4 years ago

gunjikamiya commented 5 years ago

Hi.

I am currently considering using login.ctp on the login screen of the administration screen.

Therefore, login.ctp was placed in the following file path.

/src/Template/Layout/login.ctp

The following is in login.ctp.

However, rewriting the contents of login.ctp is not reflected. Do you need any other settings?

thanks.

gunjikamiya commented 5 years ago
$this->viewBuilder()->setLayout('login');

$this->render('/Layout/login');
スクリーンショット 2019-11-25 15 11 02
maiconpinto commented 4 years ago

Hi @kamiyagunji

Just an example.

// src/Template/login.ctp - just an example

$this->layout = 'AdminLTE.Login';

echo $this->Form->create(null);

echo $this->Form->control('login');
echo $this->Form->control('password');

echo $this->Form->end();