Forums / Cotonti / Development / Q about stored vars and plugins

ez
#1 2010-04-05 03:03
Hi all,
Is there a configuration variable available that points to the basedir of a plugin..

Now i do it like this:
$cfg['plugins_dir']."/ezchat"

But this is a tinybit hardcoded... :) I would like to use something like:

$cfg['plugins_dir'].['thisplugname'] or something...

is there something that does this..

thanks...

p.s. I am ceating a new chatplugin... called ezchat
==- I say: Keep it EZ -==
Kilandor
#2 2010-04-05 20:50
Well as long as your in plug.php you could use the $e var, but you should just hardcode it anyways. There is no reason really end users should be renaming a plugin code anyways.
ez
#3 2010-04-06 03:11
Thanks kilandor... Just wanted to know somebodies opinion about this...

I prefer to code it, just like everybody else (the main programmers of cotonti) does
(just want to follow the standards..)

thnx

I will hardcode it :)
==- I say: Keep it EZ -==