tags:

views:

344

answers:

1

So I'm trying to go through the Version 3 Guide of Kohana and keep getting an error on the hello world create view part.

ErrorException [ Warning ]: Attempt to assign property of non-object
Line 8: $this->template->message = 'hello world';

I placed the site.php in the application/views folder... is this the wrong place...?

The code....

public $template = 'site';

public function action_index()
{
        $this->template->message = 'hello world';
}

If anyone can shed some light on what I'm doing wrong I'd much appreciate it... Thanks

+1  A: 

Oops forgot to extend the controller.

Had

class Controller_Welcome extends Controller {

Needed to have

class Controller_Welcome extends Controller_Template {
Serhiy
did it solve your problem?
Lukman
Yes, yes it did
Serhiy