getContext()->getRequest(); $methodName = addslashes(trim($request->getParameter('m'))); //调用哪个方法 $className = addslashes(trim($request->getParameter('c'))); //调用哪个类文件 $pluginName = addslashes(trim($request->getParameter('p'))); //插件名称,文件名 $className = $className==''?"Home":$className; $request -> setAttribute("c", $className); $request -> setAttribute("p", $pluginName); if($pluginName){ require_once(MO_WEBAPP_DIR."/plugins/".$pluginName."/admin/actions/".$className."Action.class.php"); $className = $className.'Action'; $plugin = new $className($this->getContext()); if ($methodName) { $plugin->$methodName(); }else{ if($_SERVER['REQUEST_METHOD'] == 'GET'){ $plugin->getDefaultView(); }else{ $plugin->execute(); } } } return View :: INPUT; } public function execute() { $this->getDefaultView(); } public function getRequestMethods(){ return Request :: POST; } } ?>