Ejemplo n.º 1
0
 public function beforeAction()
 {
     $this->Node->findConditions = array();
     if (in_array($this->action, array('edit', 'create'))) {
         $this->addForm('AdminNodeForm');
         $this->addForm('AdminNodeTextForm');
     }
     return parent::beforeAction();
 }
Ejemplo n.º 2
0
 public function beforeAction()
 {
     $this->Comment->findConditions = array();
     if (!empty($this->params['id'])) {
         if (!$this->Comment->fromId((int) $this->params['id'])) {
             return false;
         }
         $this->data->set('Comment', $this->Comment);
     }
     return parent::beforeAction();
 }
Ejemplo n.º 3
0
 public function beforeAction()
 {
     $this->BlogPost->findConditions = array();
     return parent::beforeAction();
 }