[SOLVED] How do you access the root url within a template?
Posted: Wed May 14, 2008 8:09 pm
Hi there,
I need access to the root url and the upload url within a template. I used {get_template_vars} and can see that these are both within the $gCms->config object, but can't seem to get any closer than that!
{$gCms->config|print_r} returns Array
{$gCms->config[root_url]|print_r} returns 1
{$gCms->config[root_url]} returns nothing
{$gCms->config['root_url]'} produces smart errors
Any pointers of how to do this?
thanks
Gill
I need access to the root url and the upload url within a template. I used {get_template_vars} and can see that these are both within the $gCms->config object, but can't seem to get any closer than that!
{$gCms->config|print_r} returns Array
{$gCms->config[root_url]|print_r} returns 1
{$gCms->config[root_url]} returns nothing
{$gCms->config['root_url]'} produces smart errors
Any pointers of how to do this?
thanks
Gill