/** * 增加首页经理 */ public function addAction() { if ($this->_request->isPost()) { $aHomeManager = $this->_checkData('add'); if (empty($aHomeManager)) { return null; } if (Model_HomeManager::addData($aHomeManager) > 0) { return $this->showMsg('首页经理增加成功!', true); } else { return $this->showMsg('首页经理增加失败!', false); } } }