CakePhp error loadModel from another plugin

Question

Simply my code is

    $this->loadModel('Documents.Document');
    debug($this->Document->_checkUserGroupPermission($docPerm, $uid));

The error staketrace is

DboSource->query('_checkUserGroup...', Array, Object(AppModel))
Model->__call('_checkUserGroup...', Array)
AppModel->_checkUserGroupPermission('guest')
[internal function]: EventsController->view('1')
ReflectionMethod->invokeArgs(Object(EventsController), Array)
Controller->invokeAction(Object(CakeRequest))
Dispatcher->_invoke(Object(EventsController), Object(CakeRequest))
dispatch(Object(CakeRequest), Object(CakeResponse))

I think it can't find the Documents.Document model


Show source
| cakephp   2017-01-04 13:01 0 Answers

Answers ( 0 )

◀ Go back