colly_wyx
2017-08-11 0b55ac0050b2779383499c122182f82d0ce97f0f
application/modules/Admin/controllers/Index.php
@@ -34,20 +34,15 @@
     * 查看新闻
     * @param [type] $id [description]
     */
   public function LookAction(){
      $id = $this->get('id');
      if(!empty($id)){
         $article = $this->article_service->getArticleInfo(array('_id' => $id));
         if($article){
            $this->getView()->assign('article', $article);
         }
         else{
            $this->redirect('/error/show/type/no_data');
         }
   public function LookAction($id){
      $article_service = new Service_Article();
      $article = $article_service->getArticleInfo(array('_id' => $id));
      if($article){
         $this->getView()->assign('article', $article);
      }
      else{
         $this->redirect('/error/show/type/not_found');
      }
         $this->redirect('/error/show/type/no_data');
      }
   }
}