/
/cache
/configs
/libs
/templates
/templates/administrator
/cache
/administrator
一个智者结构我想相同的模板结构分配给我的管理员文件夹。我得到的错误:
"Fatal error: Uncaught exception 'SmartyException' with message 'Unable to load template file 'administrator/index.tpl"
我使用的代码是
$t = new smarty;
$t->setTemplateDir('.' . DS . 'templates/administrator' . DS)
->setCompileDir('.' . DS . 'templates_c' . DS)
->setPluginsDir(SMARTY_PLUGINS_DIR)
->setCacheDir('.' . DS . 'cache' . DS)
->setConfigDir('.' . DS . 'configs' . DS);