I am using cakephp, and if e.g. inside the component I need to use a model and I use $myModel = ClassRegistry::init('MyModel')
trying to use some method of $myModel
- autocomplete does not fire. When I use this way of importing models in component
App::uses('MyModel', 'Model');
$myModel = new MyModel();
autocomplete works just fine. But I am using the first method, is there a way to make it work in that case ?
Thanks