Get Model From Module In Sitecontroller

Is it possible to get model from module in siteController which is default controller which is placed at protected/controllers/siteController.php …? and i want to call a method from a model which is placed at protected/Module/Admin/models/Menu.php… i want to call method from Menu Class in site controller … is it possible … sorry for this noob question… or i have to copy that modle into protected/models/ directory…

Hi,

You can do that but check with the file inclusion in config/main.php file as folllows





'import' => array(


        'application.modules.<your_module>.models.*', //Replace with your module.


    ),



If works don’t hesitate to press +

[b]

[/b]

Cheers!

Thank you if it’s gonna work…