예제 #1
0
 public function beforeRender()
 {
     parent::beforeRender();
     $this->set('objectType', $this->getModel());
     $this->set('parent_id', $this->parent_id);
     $model = $this->loadModel($this->parentModel);
     $this->parentArticle = $this->parent_id ? $model->findById($this->parent_id) : array();
     $this->set('parentArticle', $this->parentArticle);
 }
예제 #2
0
 public function beforeRender()
 {
     parent::beforeRender();
     $this->set('objectType', 'User');
 }
예제 #3
0
 public function beforeRender()
 {
     parent::beforeRender();
     $this->set('objectType', 'CategoryParam');
 }
예제 #4
0
 public function beforeRender()
 {
     parent::beforeRender();
     $this->set('objectType', $this->Product->objectType);
 }