Kohana 3.3模型未在Linux上加载,但将在Windows上加载 [英] Kohana 3.3 Model not loading on linux, but will on Windows
本文介绍了Kohana 3.3模型未在Linux上加载,但将在Windows上加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
所以我正在努力迁移到linux服务器.我得到了错误
So I am struggling migrating to a linux server. I get the error
ErrorException [ Fatal Error ]: Class 'Model_Game' not found
我的文件结构是
application/classes/Model/game.php
模型定义为
class Model_Game extends ORM {
protected $_table_name = 'game';
protected $_primary_key = 'game_id';
...
}
这在我的Windows环境中有效,但在我的Linux环境中无效.据我了解,这是正确的
This works in my windows environment, but not in my linux environment. From my understanding this is correct
推荐答案
您需要遵循PSR-0命名: http://kohanaframework.org/3.3/guide/kohana/conventions#类名和文件位置
You need to follow PSR-0 naming: http://kohanaframework.org/3.3/guide/kohana/upgrading#psr-0-support-fileclass-naming-conventions and http://kohanaframework.org/3.3/guide/kohana/conventions#class-names-and-file-location
这篇关于Kohana 3.3模型未在Linux上加载,但将在Windows上加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文