Issue
i tried to set $uses in cakePhp3, it's working in cakePhp2.6 but not in 3
public $uses = array('model1', 'model2', 'model3', .... );
but i get error like
{
"message": "Call to a member function find() on boolean",
"url": "/JobPosts/Test/1042.json",
"code": 500,
"file": "/home/task24/public_html/clientApi/src/Controller/JobPostsController.php",
"line": 1304
}
Solution
You don't use $uses anymore in Cake 3.
$this->loadModel('MyModel');
Answered By - BadHorsie
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.