分组
'APP_GROUP_LIST'=>'Home,Games,News,Pay,Public',//项目分组
'DEFAULT_GROUP'=>'Home',
'APP_SUB_DOMAIN_DEPLOY'=>true,
'APP_SUB_DOMAIN_RULES'=>array(
'www'=>array('Home/index'),//首页
'games'=>array('Games/Index'),//游戏页面
'news'=>array('News/'),
'pay'=>array('Pay/'),
),
'TMPL_ENGINE_TYPE'=>'Smarty',
'TMPL_ENGINE_CONFIG'=>array(
'caching'=>true,
'template_dir'=>TMPL_PATH,
'compile_dir'=>CACHE_PATH,
'cache_dir'=>TEMP_PATH,
),
模版位于:
/Tpl/Home/Index/index.html
公共头和尾在
/Tpl/Public/header.html和footer.html
引入文件的部分
{include file="Public/header.html"}
The boy who love php and Python!