zblog自定义页面静态版
1、设置自定义页面为
https://www.ytecn.com/?ytecn
2、通过接口,设置静态连接,当访问自定义界面后执行自定的函数。
Add_Filter_Plugin('Filter_Plugin_Index_Begin','ytecn_Index_Begin');
function ytecn_Index_Begin(){
global $zbp;
if(isset($_GET['ytecn'])){
ytecn_ytecn();
}
}3、通过函数设置模板文件,在模板目录的template文件下创建t_ytecn.php
function ytecn_ytecn() {
global $zbp;
$zbp->template->SetTags('title',"自定义页面");
$zbp->template->SetTemplate('t_ytecn');
$zbp->template->Display();
}4、在t_ytecn.php自定义模板内容。
5、完。




