Esempio n. 1
0
 function admin_edit($id = null)
 {
     parent::admin_edit($id);
     $parentAcos = $this->Aco->ParentAco->find('list');
     $aros = $this->Aco->Aro->find('list');
     $this->set(compact('parentAcos', 'aros'));
 }
Esempio n. 2
0
 function beforeFilter()
 {
     parent::beforeFilter();
     if (isset($this->params['form']['action']) && $this->params['form']['action'] == 'cancel') {
         unset($this->params['form']['action']);
         $this->redirect(array_merge(array('action' => 'list_items'), $this->params['named']));
     }
 }
Esempio n. 3
0
 function beforeFilter()
 {
     parent::beforeFilter();
 }
Esempio n. 4
0
 function beforeFilter()
 {
     parent::beforeFilter();
     $this->configTypes = array('bool' => __('Boolean Value', true), 'dropdown' => __('Selectable List', true), 'integer' => __('Integer input', true), 'string' => __('String input', true));
 }
Esempio n. 5
0
 function beforeFilter()
 {
     parent::beforeFilter();
     $this->listThemes = array(0 => __('Default', true)) + $this->Route->Theme->find('list');
 }