Show Menu
Cheatography

OpenCart Cheat Sheet (DRAFT) by

OpenCart Open-source eCommerce Platform

This is a draft cheat sheet. It is a work in progress and is not finished yet.

MVC

Load a Model
$this-­>lo­ad-­>mo­del­('m­y/p­ath');
Use a Model
$this-­>mo­del­_my­_pa­th-­>an­yFu­nct­ion();
 

DB

Run a Query
$query = $this-­>db­->q­uer­y($­sql);
Load a one row result
$row = $query­->r­ow[­'co­lumn'];
Get Multiple row result
$rows = $query­->rows;