所以我试图通过 Kohana 的第 3 版指南,并在 hello world create view 部分不断收到错误。
ErrorException [ Warning ]: Attempt to assign property of non-object
Line 8: $this->template->message = 'hello world';
我将 site.php 放在 application/views 文件夹中...这是错误的地方...?
编码....
public $template = 'site';
public function action_index()
{
$this->template->message = 'hello world';
}
如果有人能阐明我做错了什么,我将不胜感激......谢谢