Can I have data['miVariable'] available in all methods in class? |
[eluser]chefnelone[/eluser]
Hello Can I have data['miVariable'] available in all methods in class? Let say I have the index class, how can I make data['miVariable'] reachable for all the methods in the class. I tried putting it in the construct function but nope... Code: class Index extends MY_Controller {
[eluser]danmontgomery[/eluser]
http://www.php.net/manual/en/language.oop5.basic.php Code: class Index extends MY_Controller {
[eluser]chefnelone[/eluser]
Thanks noctrum. I really need to go into a OOP tutorial/book.
[eluser]tomcode[/eluser]
You can also load the data in the constructor Code: class Index extends MY_Controller { |
Welcome Guest, Not a member yet? Register Sign In |