/
/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);