Ejemplo n.º 1
0
 /**
  * post: title, content, tag
  */
 public function postWord()
 {
     if (!$this->hasLoginCheck()) {
         return;
     }
     $title = $_POST['title'];
     $content = $_POST['content'];
     //$tag=explode(",",$this->_post('tag'));
     $tag = $_POST['tag'];
     //        $tmp2=$tmp->select();
     $blogItem = new BlogItemModel();
     $blogItem->addWord($title, $content, $tag);
     echo json_encode(array('status' => 'true'));
 }