Hi, I think my Subject is saying everything. Here, in User Handbook is written that {$gCms} is available from smarty. So I can access anything of config file from smarty, can't I?
But when I write {$gCms->config.root_path} in my template, I've got nothing. Because of it I tried to execute {$gCms|var_dump} and cmsms responds "NULL".
How can I get root_path from smarty? Thank you.
CMSMS variable gCms is not accessible from Smarty
Re: CMSMS variable gCms is not accessible from Smarty
I solved it with user defined tag. Thank you.
Re: CMSMS variable gCms is not accessible from Smarty
The wiki must be rewritten - $gCms->config was removed, you have to use cmsms()->GetConfig() insteadpustofkj wrote:Here, in User Handbook is written that {$gCms} is available from smarty. So I can access anything of config file from smarty, can't I?
