Web Haunt

Web Development Tutorials & Web Developer Resources

Skip to content
Menu
  • Home
  • PHP
    • Installation and Configuration
  • Live Demos

Tag: OpenCart

How to load Model outside Controller in OpenCart

Posted onAugust 17, 2016January 3, 2021by WebHaunt Team
It is only one method that you need to copy, you would be best adding a method to the Cart class itself. The Cart class will work with the $this->db->query() calls as it already has $db assigned to it even though it is not a Controller/Model. In this post we have share load Model outside Controller in OpenCart. Should you wish to do this, [...]
Read More

Latest Posts

  • Create Pagination Using PHP and MySQL
  • To-Do List Application Using PHP, MySQL and AJAX
  • NodeJS Login and Registration Rest API with MongoDB
  • Build a Contact Form in CodeIgniter with Email
  • Compress Image Before Upload using PHP
Copyright © 2016 - 2025 WEBHAUNT.COM All rights reserved.