public function __construct() { date_default_timezone_set('Asia/Ho_Chi_Minh'); parent::__construct(); $this->setTableName($this->table); $this->productModel = new ProductModel(); }
public function __construct() { parent::__construct(); $this->setTableName($this->table); $options = array('fields' => array('*')); // get list category $arrCategory = $this->find('all', $options); foreach ($arrCategory as $arrRow) { $this->data[$arrRow['id']] = $arrRow; if ($arrRow['category_parent'] == 0) { $this->parentList[$arrRow['id']] = $arrRow; } else { $this->childList[$arrRow['category_parent']][$arrRow['id']] = $arrRow; } } }
public function __construct() { parent::__construct(); $this->setTableName($this->table); }
public function __construct() { parent::__construct(); date_default_timezone_set('Asia/Ho_Chi_Minh'); $this->setTableName($this->table); }