Hi everybody,
Here's my code:
class Manual extends controller {
function Manual(){
parent::Controller();
$myVar = 'blablabla';
}
function doStuff(){
echo $myVar; // Doesn't work.
}
}
I've tried various methods to make it work, but I've can't get my head around it. What can I do?
Thanks
function Manual
usefunction __construct
and instead ofparent::Controller()
useparent::__construct()
– nickf Jun 29 at 23:18