Skip to content

Instantly share code, notes, and snippets.

<?php
public $components = array(
'Paginator',
'RequestHandler',
'DataTable.DataTable' => array(
'Employee' => array(
'columns' => array(
'id' => false, // bSearchable and bSortable will be false
'last_name' => array(
<?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