Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[求助] 关于在根目录下的php获取模板

[复制链接]
hong5305 发表于 2013-8-30 10:24:52 | 显示全部楼层 |阅读模式
5微币
本帖最后由 hong5305 于 2013-8-30 14:25 编辑

大家好,我想请问的是,我的DZ是装在空间的根目录下,所以我现在想在根目录下新增一个 hiuser.php, 而这个hiuser.php 的模板如何设定是调用 template/hiuser/index.htm 下的呢?应该在hiuser.php里面增加什么判断代码呢?
方法是:
在hiuser.php 里面写入:

<?php

/* * ************************************************************
*
*     Copyright (c) 2010 Dorian Deng
*
*     http://www.doriandeng.com
*
* ************************************************************ */

define('CURSCRIPT', 'hiuser');

require './source/class/class_core.php'; 调用DZ核心文件

include template('hiuser/index');// 模板文件, 调用template/hiuser/index.htm (无需输入.htm)


?>


您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-6-2 09:44 , Processed in 0.085694 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表