Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
Bug reports and fixes
.
Home
Help
Login
Register
Elxis CMS Forum
»
Support
»
General
(Moderators:
Ivan Trebješanin
,
Farhad Sakhaei
) »
template php variables difference
« previous
next »
Print
Pages: [
1
]
Author
Topic: template php variables difference (Read 3723 times)
xmanhattan
Hero Member
Posts: 1235
If I'm still breathing, I'm doing something!
template php variables difference
«
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
Bournias.net
webgift
Elxis Team
Hero Member
Posts: 4193
Re: template php variables difference
«
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
Elxis Team •
Custom web design [EN]
-
[EL]
•
.GR Registrar
xmanhattan
Hero Member
Posts: 1235
If I'm still breathing, I'm doing something!
Re: template php variables difference
«
Reply #2 on:
March 24, 2012, 15:40:12 »
Hello Stavros,
Thank you for your quick answer.
Logged
Bournias.net
webgift
Elxis Team
Hero Member
Posts: 4193
Re: template php variables difference
«
Reply #3 on:
March 24, 2012, 16:25:02 »
You are welcome, Peter!
Logged
Elxis Team •
Custom web design [EN]
-
[EL]
•
.GR Registrar
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Support
»
General
(Moderators:
Ivan Trebješanin
,
Farhad Sakhaei
) »
template php variables difference