[eluser]jfouse[/eluser]
[quote author="NateL" date="1258517573"][quote author="Gromozeka" date="1258517510"]If you use $data in more than one method, it should be declared as a class member, right?[/quote]
I'm not sure [/quote]
Yes, right now your $data var is local to the __construct() function, and not visible anywhere outside of it. If you want it visible by other functions, you'll need to do something more like this:
Code:
class Welcome extends Controller
{
private $data = NULL;