예제 #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'));
 }
예제 #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']));
     }
 }
예제 #3
0
 function beforeFilter()
 {
     parent::beforeFilter();
 }
예제 #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));
 }
예제 #5
0
 function beforeFilter()
 {
     parent::beforeFilter();
     $this->listThemes = array(0 => __('Default', true)) + $this->Route->Theme->find('list');
 }