/** * 添加 */ public function add() { if (IS_GET) { $this->configVars(); $this->display(); } else { $menu = I('post.'); parent::addTo($menu, U('Admin/Config/index')); } }