mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-02 13:12:49 +08:00
类库别名和调用修正
增加sae日志驱动 改进Hook类的exec方法 行为扩展优先检测标签方法 不存在则调用run方法 NOW_TIME改用REQUEST_TIME_FLOAT 变量命名规范
This commit is contained in:
@@ -13,17 +13,14 @@ namespace think\behavior;
|
||||
|
||||
/**
|
||||
* 系统行为扩展:定位模板文件
|
||||
* @category Think
|
||||
* @package Think
|
||||
* @subpackage Behavior
|
||||
* @author liu21st <liu21st@gmail.com>
|
||||
*/
|
||||
class LocationTemplate {
|
||||
// 行为扩展的执行入口必须是run
|
||||
public function run(&$templateFile){
|
||||
// 自动定位模板文件
|
||||
if(!is_file($templateFile))
|
||||
if(!is_file($templateFile)){
|
||||
$templateFile = $this->parseTemplateFile($templateFile);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -42,7 +39,7 @@ class LocationTemplate {
|
||||
}elseif(false === strpos($template,'.')) {
|
||||
$template = $template;
|
||||
}
|
||||
$templateFile = MODULE_PATH.'View/'.$template.'.html';
|
||||
$templateFile = MODULE_PATH.'view/'.$template.'.html';
|
||||
return $templateFile;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user