M
M
masimka2017-08-08 15:05:44
ORM
masimka, 2017-08-08 15:05:44

Why is Class 'Model_role' not found on a working linux?

ErrorException [ 1 ]: Class 'Model_role' not found ~ MODPATH/orm/classes/Kohana/ORM.php

ON locale under Windows everything worked.
there is no such file Role.php in Model

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
masimka, 2017-08-08
@masimka

SORI, classes are loaded by specifying a class file.,
it was now Everything worked.

E
entermix, 2017-08-08
@entermix

Why is Class 'Model_role' not found on a working linux?

Because you do not follow the naming convention of classes and files
Well, respectively, when calling:
$roles = ORM::factory('Role')->find_all();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question