emlog模板设置首页为index.php

emlog的模板是没有首页index.php的,需要自己创建

而且需要设置index.php为首页,还要在log_list.php头部加上以下代码

if($pageurl == Url::logPage()){include View::getView('index');exit;}

在index.php头部加上,就已经是首页了

/**
* 站点首页模板
*/
if (!defined('EMLOG_ROOT')) {
exit('error!');
}

题外话:
emlog有趣的是,header.php头部文件是不需要自己引用的。只有底部才需要引用

说说你的见解

OωO
取消