Hey All,
I've started creating my first module and wanted to know if it's possible to call information from other controllers/models than the one being worked on.
For example, displaying a list of manufacturers. I was going to create a model/controller/, call up manufacturers from db, assign to an array, echo output.
Can I include product/manufacturers model to get information?
(a working example would be appreciated)
Thanks
The manufacture model can be loaded with:KillerDuck wrote:Can I include product/manufacturers model to get information?
Code: Select all
$this->load->model('catalog/manufacturer');
Code: Select all
$manufacturers = $this->model_catalog_manufacturer->getManufacturers();
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
Thanks for the info, worked perfectly!
Finally getting to grips with it now so really appreciated, thanks
Finally getting to grips with it now so really appreciated, thanks

Who is online
Users browsing this forum: No registered users and 9 guests