This file contains 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
<?php | |
public $components = array( | |
'Paginator', | |
'RequestHandler', | |
'DataTable.DataTable' => array( | |
'Employee' => array( | |
'columns' => array( | |
'id' => false, // bSearchable and bSortable will be false | |
'last_name' => array( |
This file contains 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
<?php | |
public function beforeFilter() { | |
parent::beforeFilter(); | |
// Painel de Controle | |
if (isset($this->params['prefix']) && $this->params['prefix'] == 'admin') { | |
$this->layout = 'admin'; | |
// Configuração do AuthComponent |