New constants? (CMSimple_XH)

Discussions and requests related to new CMSimple features, plugins, templates etc. and how to develop.
Please don't ask for support at this forums!

New constants? (CMSimple_XH)

Postby Gert » Fri Oct 16, 2009 10:59 am

Hallo,

I have thought about 2 new constants:

Code: Select all
define('CMSIMPLE_ROOT', str_replace('/'.$sl.'/', "/", $sn)); //for absolute references
define('CMSIMPLE_BASE', (strtolower($cf['language']['default'])==$sl?'./':'./../')); //for relative references

Normally they should be defined in the cms.php, but if some Plugins or addons use them, they are not available without CMSimple_XH.

Should we define the constants in the index.php of the Pluginloader? So they would be available, if an user of CMSimple 3.2 updates his PL.
Gert Ebersbach | CMSimple | Templates - Plugins - Services
Gert
 
Posts: 4564
Joined: Fri May 30, 2008 4:53 pm
Location: Berlin

Re: New constants

Postby Holger » Fri Oct 16, 2009 11:08 am

Hmm, unsure...

but the 2nd one is definitive unnecessary because it's the same as $pth['folder']['base'] and almost every plugin must globalise $pth.

Holger
Holger
Site Admin
 
Posts: 2605
Joined: Mon May 19, 2008 7:10 pm
Location: Hessen, Germany

Re: New constants

Postby Gert » Fri Oct 16, 2009 11:14 am

Holger wrote:but the 2nd one is definitive unnecessary because it's the same as $pth['folder']['base']

I know, but Markus would like to have more constants ;)
Last edited by Gert on Fri Oct 16, 2009 11:26 am, edited 1 time in total.
Gert Ebersbach | CMSimple | Templates - Plugins - Services
Gert
 
Posts: 4564
Joined: Fri May 30, 2008 4:53 pm
Location: Berlin

Re: New constants? (CMSimple_XH)

Postby Gert » Fri Oct 16, 2009 11:23 am

Holger wrote:Hmm, unsure...

I think, the PL will be the central point of CMSimple_XH in the future. The cms.php will be the "basic script" only, the PL will be more important than the cms.php ...
Gert Ebersbach | CMSimple | Templates - Plugins - Services
Gert
 
Posts: 4564
Joined: Fri May 30, 2008 4:53 pm
Location: Berlin


Return to Open Development

Who is online

Users browsing this forum: No registered users and 2 guests