Hello everybody,
Im writing an application that takes various different classes.
background:
i basically have a bootstrap type of file that requires all the needed classes.
inside each individual class file at the bottom, i have instantiated the class.
later on in other theme files i want to use some methods of the classes
i get an error as so: Notice:
Undefined variable: message in ...
this should not be happening since i have already instantiated the classes in files before the current one.
----------------
Im using php v. 5.2 on my server.
im basically included from the root index file, my bootstrap. and below that, my themes folder.
in my themes/default/account/login i cannot use classes 1-3 that have been included and instantiated previously which is absurd as i do not know why i dont have access to them.
File Structure:
- /theme/
- /default/
- /account/
- /login/
- index.php
index.php
/library/
- class1.php
- class2.php
- class3.php
index.php
bootstrap.php
any help would be appreciated, thank you.