How can I call a module in another module? This code works on my Controllers in Protected/Controllers:
$image = Yii::app()->image->save($photofile, 'some_name','uploadedGal');
But in the controller of my other module (admin) I get this error.
Property "CWebApplication.image" is not defined.
I have defined the image module in my main config file:
'modules'=>array(
'image'=>array(
'createOnDemand'=>true, // requires apache mod_rewrite enabled
'install'=>true, // allows you to run the installer
),
'admin',
),
adminand in the backend I need to use a module for image managementimage. I followed all the instructions and it works in the frontend, but it doesnot work in the backend which is a module itself