/**
  * 编辑页面
  */
 public function editArticleAction()
 {
     error_reporting(11);
     // 1开启fatal 2开启warning 8开启notice 0关闭
     $id = (int) $this->request->get('i');
     //        $this->session->start();
     //        $author = $this->session->get(self::sessPrefix.'name');
     //        $conn = $this->getConnection();
     //        $sql = 'select id,title,content from article where id=? and author=?';
     //        $row = $conn->fetchOne($sql, Phalcon\Db::FETCH_ASSOC, array($id, $author));
     $this->view->title = 'this is a tt';
     $this->view->tag = '<script>console.dir(console);</script>';
     $this->view->loop = array('a1' => 'aaaaa', 'a2' => 'bbbbb', 'a3' => 'ccccc');
     if ($id) {
         $row = Article::findFirstById($id);
         $this->view->info = $row;
     }
 }