/** * 保存帖子 */ function actionSave() { $post = array('post_id' => $_POST['post_id'], 'title' => $_POST['title'], 'body' => strip_tags($_POST['body'])); __TRY(); $this->_modelPosts->savePost($post); $ex = __CATCH(); if (__IS_EXCEPTION($ex)) { return $this->_editComment($post, $ex->getMessage()); } js_alert(_T('ui_c_success_post'), '', $this->_url('index')); }