예제 #1
0
파일: Scores.php 프로젝트: hongker/Blog
 /**
  * 获取评分目标信息
  * @return unknown
  */
 public function getTarget()
 {
     if ($this->type == 1) {
         $target = Articles::findFirst($this->target_id);
     }
     return $target;
 }
예제 #2
0
 public function indexAction()
 {
     $article = Articles::findFirst(1, "slave");
     $this->view->string = $article->getTitle();
 }