| Line 80... |
Line 80... |
| 80 |
}
|
80 |
}
|
| 81 |
}
|
81 |
}
|
| 82 |
if(!isset($cache) || $cache != 0){
|
82 |
if(!isset($cache) || $cache != 0){
|
| 83 |
setCache($configdata['module'],$cachemodule,$data['response']);
|
83 |
setCache($configdata['module'],$cachemodule,$data['response']);
|
| 84 |
}
|
84 |
}
|
| - |
|
85 |
if(isset($data['response']['response']['home_featured_product']) && !empty($data['response']['response']['home_featured_product'])){
|
| 85 |
$data['response']['response'] = $this->InsertBeforeKey($data['response']['response'],'home_featured_product','recharge_icons',$tmp['response']['recharge_icons']);
|
86 |
$data['response']['response'] = $this->InsertBeforeKey($data['response']['response'],'home_featured_product','recharge_icons',$tmp['response']['recharge_icons']);
|
| - |
|
87 |
}else{
|
| - |
|
88 |
$data['response']['response'] = $this->InsertBeforeKey($data['response']['response'],'home_menu','recharge_icons',$tmp['response']['recharge_icons']);
|
| - |
|
89 |
}
|
| 86 |
$data['response']['response'] = $this->InsertBeforeKey($data['response']['response'],'home_menu','recommended_accessories',$tmp['response']['recommended_accessories']);
|
90 |
$data['response']['response'] = $this->InsertBeforeKey($data['response']['response'],'home_menu','recommended_accessories',$tmp['response']['recommended_accessories']);
|
| 87 |
//end of set cache\
|
91 |
//end of set cache\
|
| 88 |
$this->layout->view('home/home_view',$data);
|
92 |
$this->layout->view('home/home_view',$data);
|
| 89 |
}
|
93 |
}
|
| 90 |
public function InsertBeforeKey($originalArray,$originalKey,$insertKey,$insertValue){
|
94 |
public function InsertBeforeKey($originalArray,$originalKey,$insertKey,$insertValue){
|