content = Load::get($uri, array()); Api::out($this->content); } # 直接读取模板 else { $this->content = View::getInstance(Uri::file())->runing(); } return $this; } /** * out * * @return mixed */ public function output() { if(!$this->content) { Output::abert('error_page'); } $this->debug(); Output::result($this->content, true, false); } /** * debug * * @return mixed */ private function debug() { if(Debug::init() && is_string($this->content)) { if(strpos($this->content, '') >= 0) { $this->content = str_replace('', Debug::html() . '', $this->content); } else { $this->content = $this->content . Debug::html(''); } } } }