Can't access parent class' variables |
[eluser]Nuu[/eluser]
I was trying to stick some header data into MY_Controller class then access it from all the other pages. I keep getting the error 'Undefined Variable' when I try to access the variable ['mytitle'] in the view. This is my controller placed in Application/library/ folder. Code: <?php This is my test controller. Code: <?php Here's my test view. Code: <html> I have been looking at it for the last hour and just can't see why its wrong. I see a number of threads making reference to this method of coding e.g. How to extend controller class http://ellislab.com/forums/viewthread/71468/ Help ... :gulp: |
Messages In This Thread |
Can't access parent class' variables - by El Forum - 02-08-2009, 03:16 AM
Can't access parent class' variables - by El Forum - 02-08-2009, 04:15 AM
Can't access parent class' variables - by El Forum - 02-08-2009, 05:23 AM
Can't access parent class' variables - by El Forum - 02-08-2009, 05:51 AM
|