Kohana Formo 错误:在 Model_User 中调用的方法无效
尝试将 Formo 模块与 ORM 和 Kohana 3.1 一起使用,但不断收到此错误...
Invalid method formo called in Model_User
我尝试使用的任何模型都会收到此错误。用户模型是ORM自带的默认模型。我尝试的代码如下。
$user = ORM::factory('user', 1);
$form = Formo::form()
->orm('load', $user);
Formo 模块是我可以从 GitHub 获得的最新模块... v2.0RC2-24
我似乎无法弄清楚我可能做错了什么...谢谢...
Trying to use the Formo module with ORM and Kohana 3.1, but keep getting this error...
Invalid method formo called in Model_User
I get this error with any Model I try to use. The user model is the default one that comes with ORM. The code I try is as follows.
$user = ORM::factory('user', 1);
$form = Formo::form()
->orm('load', $user);
The Formo module is the newest one I could get from GitHub... v2.0RC2-24
I can't seem to figure out what it is that I could be doing wrong... thanks...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
datasage 你是对的,如果你想“回答”这个问题,我很乐意将答案交给你。我所需要的只是在我的模型中声明 formo() 方法。
datasage you are correct, if you wish to "answer" the question I'll gladly hand over the answer to you. All I needed was to declare the formo() method in my models.