view = $view; $this->pluginName = $pluginName; } //默认执行方法 public function execute() { echo "hello view"; return ; } public function setAttribute($name,$value) { $this->view->setAttribute($name,$value); } public function setTemplate($path) { $this->view->setTemplate(MO_WEBAPP_DIR."/plugins/".$this->pluginName."/admin/templates/".$path); } //封装请求参数方法 public function getParameter($string){ return $_REQUEST[$string]; } public function getContext () { return $this->view->getContext(); } } ?>