first commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
class ModelSettingStore extends Model {
|
||||
public function getStores() {
|
||||
$store_data = $this->cache->get('store');
|
||||
|
||||
if (!$store_data) {
|
||||
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "store ORDER BY url");
|
||||
|
||||
$store_data = $query->rows;
|
||||
|
||||
$this->cache->set('store', $store_data);
|
||||
}
|
||||
|
||||
return $store_data;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user