Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ProcessosController extends AppController {
- public $name = 'Processos';
- public function beforeFilter() {
- parent::beforeFilter();
- $this->Security->unlockedActions = array('excluir','delete','salvar');
- }
- function index(){
- $processos = $this->Processo->find('all',
- array(
- 'conditions' => array('Processo.status' => 1),
- 'order' => array('Processo.nome ASC')
- )
- );
- $this->set('processos', $processos);
- $this->set('_serialize', array('processos'));
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement