Hi!
I've generated new module and noticed new nice approach
$this->setImport(array( 'client.models.*', 'client.components.*', ));
It's nice that I'm not required to modify config several times, only enable module. But I've spotted problem with this:
I've founded that modules init() method called only if I'm requesting that module's controller. But if I need model from that module and page is generating with another module's controller I've got class not found exception.
So, how should I deal with it? I would like to use that setImport in modules init and not add import into configs?
Thank you in advance