public function actionAddBook() { $customer_id = $this->getParam('customer_id'); $title = $this->getParam('title'); $content = $this->getParam('content'); $book = new HiBook(); $book['title'] = $title; $book['content'] = $content; $book['customer_id'] = $customer_id; $book['insert_time'] = date('Y-m-d H:i:s', time()); $book->insert(); EchoUtility::echoMsgTF(true, '添加段子', $book); }