| 12694 |
anikendra |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
$route = $this -> router -> fetch_module().'/';
|
|
|
4 |
$data = $response['response'];
|
|
|
5 |
if(isset($subView)){
|
|
|
6 |
if($subView == 'b'){
|
|
|
7 |
$temp['product_details_b'] = $data['product_details'];
|
|
|
8 |
}elseif($subView == 'c'){
|
|
|
9 |
$temp['product_details_c'] = $data['product_details'];
|
|
|
10 |
}
|
|
|
11 |
$data = $temp;
|
|
|
12 |
}
|
|
|
13 |
if(isset($data) and !empty($data))
|
|
|
14 |
{
|
|
|
15 |
foreach($data as $headkey=>$value)
|
|
|
16 |
{
|
|
|
17 |
|
|
|
18 |
if(isset($value['render']) and !empty($value['render']))
|
|
|
19 |
{
|
|
|
20 |
if(isset($value[0]) and !empty($value[0]))
|
|
|
21 |
$this->load->view($route.$headkey,array($headkey=>$value[0]));
|
|
|
22 |
else
|
|
|
23 |
$this->load->view($route.$headkey,array($headkey=>array()));
|
|
|
24 |
}
|
|
|
25 |
else
|
|
|
26 |
{
|
|
|
27 |
if(isset($value[0]) and !empty($value[0]) and count($value[0])>1)
|
|
|
28 |
{ echo print_r($value[0]);}
|
|
|
29 |
}
|
|
|
30 |
|
|
|
31 |
|
|
|
32 |
}
|
|
|
33 |
|
|
|
34 |
}
|
|
|
35 |
?>
|
|
|
36 |
|
|
|
37 |
<script src="<?=base_url().$this->config->item('current_client')?>/js/product_detail.js?version=<?=$this->config->item('cdn_version');?>" type="text/javascript"></script>
|
|
|
38 |
<!--<p class="footer">Page rendered in <strong>{elapsed_time}</strong> seconds</p>-->
|