Beispiel #1
0
 public function initialize()
 {
     \Phalcon\Tag::setTitle('文章管理');
     parent::initialize();
     $this->operation = new ArticleOperation($this->di);
     $typeOperation = new TypeOperation($this->di);
     $this->types = $typeOperation->findAll(array("conditions" => "is_delete=0"));
 }
Beispiel #2
0
 public function initialize()
 {
     \Phalcon\Tag::setTitle('个人中心');
     parent::initialize();
     $this->userOperation = new UserOperation($this->di);
     $this->articleOperation = new ArticleOperation($this->di);
     $this->view->setVar('userinfo', $this->userOperation->get($this->user['id']));
 }
Beispiel #3
0
 public function initialize()
 {
     \Phalcon\Tag::setTitle('评论管理');
     parent::initialize();
     $this->operation = new CommentOperation($this->di);
 }
Beispiel #4
0
 public function initialize()
 {
     \Phalcon\Tag::setTitle('用户首页');
     parent::initialize();
     $this->operation = new UserOperation($this->di);
 }