Elxis CMS Forum

Support => General => Topic started by: xmanhattan on March 24, 2012, 15:10:59

Title: template php variables difference
Post by: xmanhattan on March 24, 2012, 15:10:59
Hello all,

I was looking at the index file of 2 templates and noticed a difference in the link href.

Can someone tell me what is the difference when using $mosConfig_live_site or $mainframe->getCfg?

Also, if creating a new template which should be used for 2009.3?

Thanks
Title: Re: template php variables difference
Post by: webgift on March 24, 2012, 15:18:26
Hello Peter,
As you have written $mainframe->getCfg doesn't mean something by itself. It's recommended to use $mainframe->getCfg('live_site'); in case that you want to get the value of global variable $mosConfig_live_site.
Title: Re: template php variables difference
Post by: xmanhattan on March 24, 2012, 15:40:12
Hello Stavros,

Thank you for your quick answer.

Title: Re: template php variables difference
Post by: webgift on March 24, 2012, 16:25:02
You are welcome, Peter!