开发者

I update kohana 3.0.5->3.1.1 error

I followed the example http://www.dealtaker.com/blog/2010/02/25/kohana-php-3-0-ko3-tutorial-part-5/

开发者_开发技巧

I get the following error:

ErrorException [ Notice ]: Undefined property:Response::$response.
APPPATH\views\pages\hmvc.php [ 2 ].

I don’t know how to fix it. Can you offer any suggestions?


In Ko3.1 execute() method returns Response object. You must use echo Request::factory('posts/getposts')->execute()->body() or just echo Request::factory('posts/getposts')->execute().

Follow this tutorial to upgrade your Kohana app.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜