作者:高远PASTOR | 来源:互联网 | 2023-05-17 02:12
SoIamawareoftheimplementationofthePSR-0standardinKohana3.3.However,theremustbesom
So I am aware of the implementation of the PSR-0 standard in Kohana 3.3 . However, there must be something I am not understanding as I am getting a class not found error for the following code:
所以我知道Kohana 3.3中PSR-0标准的实现。但是,必须有一些我不理解的东西,因为我得到以下代码的类找不到错误:
$model = Model::factory('MyModel');
the model definition is located at:
模型定义位于:
classes/Model/MyModel.php
How is it that my class is not being found exactly?
怎么没有找到我的班级呢?
Actual Code:
实际代码:
Model located at classes/Model/VoiceTalent.php
模型位于classes / Model / VoiceTalent.php
Controller Code:
控制器代码:
$talent = Model::factory('VoiceTalent');
Exact Error Message:
确切的错误消息:
ErrorException [ Fatal Error ]: Class 'Model_VoiceTalent' not found
SYSPATH\classes\Kohana\Model.php [ 26 ]
1 个解决方案