SYSPATH/libraries/Template/Driver/Simple.php [ 300 ]
295 $tempate = $this->_config['template_dir'] . $tempate . $this->_config['template_suffix'];
296
297 list($L, $R) = $this->_delimiter;
298
299 if(! file_exists($tempate))
300 throw new QuickPHP_Template_Exception('template_content_null',array($tempate));
301
302 // 编译文件到缓存目录
303 $page = $this->merge($tempate);
304 $page = preg_replace("#" . preg_quote("{{?") . "(.*?)" . preg_quote("?}}") . "#ims", '<?php $1 ?>', $page);
305 $page = preg_replace("#" . preg_quote("{{*") . "(.*?)" . preg_quote("*}}") . "#s", '', $page);
-
SYSPATH/libraries/Template.php [ 161 ] » QuickPHP_Template_Driver_Simple->render(arguments)
0String(21) "frontend/help/contact"1Array(0)156 * @param boolean 是否返回结果,true时,只返回结果不echo数据 157 * @return mixed html string or void 158 */ 159 public function render($tempate = NULL, $_top = array(), $return = FALSE) 160 { 161 $output = $this->driver->render($tempate, $_top); 162 163 if($this->cache_status == true) 164 $this->cache_driver->set($this->cache_key, $output, $this->cache_lifetime); 165 166 if($return == FALSE) -
SYSPATH/controllers/template.php [ 96 ] » QuickPHP_Template->render(arguments)
0String(21) "frontend/help/contact"91 { 92 $this->template = $this->directory.'/'.QuickPHP::route()->controller . '/' . QuickPHP::route()->method; 93 $this->template = str_replace("_", "/", $this->template); 94 } 95 96 $this->view->render($this->template); 97 } 98 99 return parent::after(); 100 } 101 -
APPPATH/controllers/frontend.php [ 53 ] » QuickPHP_Template_Controller->after()
48 /** 49 * Assigns the template [View] as the request response. 50 */ 51 public function after() 52 { 53 return parent::after(); 54 } 55 56 /** 57 * Assigns the template [View] as the request response. 58 */ -
{PHP internal call} » Frontend_Controller->after()
-
SYSPATH/QuickPHP.php [ 438 ] » ReflectionMethod->invoke(arguments)
0object Help_Controller(6)
{ public directory => String(8) "frontend" public auto_render => Boolean TRUE public template => String(21) "frontend/help/contact" public mime_type => String(4) "html" public response => Null public view => object QuickPHP_Template(6){ protected driver => object Template_Driver_Simple(3)}{ protected _config => Array(8) ( "layout_dir" => String(51) "/home/www/mi-tang.com/fanli/protected/views/layout/" "template_dir" => String(53) "/home/www/mi-tang.com/fanli/protected/views/template/" "template_suffix" => String(5) ".html" "compile_dir" => String(43) "/home/www/mi-tang.com/fanli/runtime/_views/" "cache_dir" => String(43) "/home/www/mi-tang.com/fanli/runtime/_views/" "compile_lifetime" => integer 2592000 "left_delimiter" => String(2) "{{" "right_delimiter" => String(2) "}}" ) protected _data => Array(5) ( "current" => String(4) "help" "title" => String(12) "帮助中心" "keywords" => String(0) "" "summary" => String(0) "" "_faqcats" => Array(3) ( 0 => Array(9) ( ... ) 1 => Array(9) ( ... ) 2 => Array(9) ( ... ) ) ) protected _delimiter => Array(2) ( 0 => String(2) "{{" 1 => String(2) "}}" ) }protected cache_driver => Null protected cache_key => Null protected cache_lifetime => Null protected cache_status => Boolean FALSE public _assigned => Array(5) ( "current" => Boolean TRUE "title" => Boolean TRUE "keywords" => Boolean TRUE "summary" => Boolean TRUE "_faqcats" => Boolean TRUE ) }433 $arguments = array(QuickPHP::route()->get('method'), QuickPHP::route()->get('arguments')); 434 } 435 436 $class->getMethod('before')->invoke($controller); 437 $method->invokeArgs($controller, $arguments); 438 $class->getMethod('after')->invoke($controller); 439 } 440 } 441 442 /** 443 * 自定义自动加载器 -
APPPATH/bootstrap.php [ 52 ] » QuickPHP->dispatch()
47 'caching' => TRUE, // 开启高速缓存 48 'frontend' => '', // 入口文件名(默认为index.php) 49 'domain' => $_SERVER['SERVER_NAME'] // 网站域名 50 ); 51 52 QuickPHP::instance($setting)->dispatch(); -
DOCROOT/index.php [ 44 ] » require(arguments)
0String(51) "/home/www/mi-tang.com/fanli/protected/bootstrap.php"39 /** 系统常量 QuickPHP 框架 framework 目录路径 */ 40 define('SYSPATH', str_replace("\\", "/", realpath($framework)) . '/'); 41 /** 系统常量 APPPATH 目录路径 */ 42 define('APPPATH', str_replace("\\", "/", realpath($protected)) . '/'); 43 /** 载入框架,加载相关配置,进行调度,执行应用 */ 44 require APPPATH . 'bootstrap' . EXT;