How can I call model in a custom module? Lets assume that model is really simple one and returns just arrays of static data.
I have a directory structure similar to this:
- app
- local
- Mypackage
- Module
- Models
- Model1.php
- Models
- Module
- Mypackage
- local
How can I include Model1.php inside controller? If I go with Mage::getModel('Mypackage/Modul/Model1) it returns error since it searches model inside Mage/Module/Model/Model1.php
Thanks!
Mage::getModel('Module/Model1)
. – Pankaj Pareek