I have a smarty structure like this
/
/cache
/configs
/libs
/templates
/templates/administrator
/cache
/administrator
I want the same template structure assign to my administrator folder. I am getting error :
"Fatal error: Uncaught exception 'SmartyException' with message 'Unable to load template file 'administrator/index.tpl"
The Code I am using is
$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);