problem with generic vars and integration with external scripts

For Joomla! 1.5 Coding related discussions, please use: http://groups.google.com/group/joomla-dev-general
Locked
mehdi
Joomla! Explorer
Joomla! Explorer
Posts: 437
Joined: Tue Oct 04, 2005 3:56 pm

problem with generic vars and integration with external scripts

Post by mehdi » Sat Apr 29, 2006 2:47 pm

Hi,
I've tested with Joomla 1.5 and I have a problem with
the new defined vars in the configuration.php file.
The prefix "mos", has been removed for some vars
while others have very different name.
Understanding the "re-branding effort" of Joomla's
team , I have no objection for this.
Unfortunately the name chose for certain variables is
just too generic. I mean such variables are often used
by other scripts (example coppermine, phpbb etc..)
I think especially to vars related to database i.e;
$db,$user, $password.
A problem will appear, as soon as
you'll try to integrate these scripts to joomla 1.5.
There will be a conflict between joomla's vars and  script's ones.
Off course, there's certainly solutions to bypass this trivial
problem , but why not at the begin give to Joomla's var
in the configuration file less trivial names ?
Maybe it would be uselessly complicated, to
use dynamical vars; I mean , appending a prefix to all these
vars  name ? Don't wanna use 'jos' ?

User avatar
louis.landry
Joomla! Ace
Joomla! Ace
Posts: 1380
Joined: Wed Aug 17, 2005 11:03 pm
Location: San Jose, California
Contact:

Re: problem with generic vars and integration with external scripts

Post by louis.landry » Sat Apr 29, 2006 6:49 pm

Joomla 1.5+ configuration variables are fields in a configuration class... they do not site in global scope so this is not an issue.

http://dev.joomla.org/component/option, ... d,33/p,10/

Louis
Joomla Platform Maintainer
A hacker does for love what others would not do for money.

mehdi
Joomla! Explorer
Joomla! Explorer
Posts: 437
Joined: Tue Oct 04, 2005 3:56 pm

Re: problem with generic vars and integration with external scripts

Post by mehdi » Sat Apr 29, 2006 8:48 pm

All right. Thanks. Seems there's too much changes on this last version.


Locked

Return to “Joomla! 1.5 Coding”