/** * 增加游戏 */ public function cAdd() { if ($this->isPost()) { $this->_modelGames = $this->getGlobal('model/Games', 'Model_Games'); $info = $this->_modelGames->add($_POST); if ($info['status'] == 1) { $this->success($info['info'], url('index/games/index')); } else { $this->error($info['info'], 2); } } else { $this->display(VIEW_PAGE); } }