hey,
quick review here
i want to fid out if i can assign variables to a class from within a function that is not in the class?
and can i access a class attribute in a function ?
what about globalizing the class so as to access it from page to page and include pages?
Kendall
ACCESS CLASSES
Moderator: General Moderators
Re: ACCESS CLASSES
Before going off in a direction in particular, can I ask what you're trying to do?
Cheers,
BDKR
Cheers,
BDKR
Kendall,
To be perfectly blunt here, I suggest reading a bit more about classes and how they are to be used.
http://www.php.net/manual/en/language.oop.php
To be perfectly blunt here, I suggest reading a bit more about classes and how they are to be used.
http://www.php.net/manual/en/language.oop.php
that are at least three topics each worth a whole tutorial (certainly there are already some) to cover it in general.
I pick the one that is least general
I pick the one that is least general
making data available throughout several requests(/pages) is no matter of globalizing. There are several ways to do this and one of them is session support that was added to php 4.what about globalizing the class so as to access it from page to page and include pages?
- to learn more about session read
- http://www.php.net/manual/en/ref.session.php
- http://www.zend.com/zend/tut/session.php