i'm making some modular aplication. I have one base class for

class Main {

  function loadmod($name,&$mod) {
    $mod = new $name;     // load module

In module class i want to use some properties from main
module, but i don't know how to solve this. But i don't want
extend all module from main class,

i call modules like this.

first i initialize main class

$main = new Main;

and when i wan't to call some function from it i call


i also don't know if this is right way to do this, but my
point is that i want to have some main class on wich i buld
modules, this modules use some properties en methods from
main class like dbacces, configuration ....

And also i don't want this to be slower everytime i add ne

any ideas

 Uros                          mailto:[EMAIL PROTECTED]

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to