Elxis CMS Forum
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Elxis 4.x documentation for users and developers
 
Pages: [1]
  Print  
Author Topic: template php variables difference  (Read 574 times)
xmanhattan
Hero Member
*****
Offline Offline

Posts: 973


If I'm still breathing, I'm doing something!


WWW
« 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
Logged

webgift
Elxis Team
Hero Member
*****
Offline Offline

Posts: 3262



WWW
« Reply #1 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.
Logged

xmanhattan
Hero Member
*****
Offline Offline

Posts: 973


If I'm still breathing, I'm doing something!


WWW
« Reply #2 on: March 24, 2012, 15:40:12 »

Hello Stavros,

Thank you for your quick answer.

Logged

webgift
Elxis Team
Hero Member
*****
Offline Offline

Posts: 3262



WWW
« Reply #3 on: March 24, 2012, 16:25:02 »

You are welcome, Peter!
Logged

Pages: [1]
  Print  
 
Jump to: