| Line 67... |
Line 67... |
| 67 |
public function emi(){
|
67 |
public function emi(){
|
| 68 |
$data = array();
|
68 |
$data = array();
|
| 69 |
//get cache
|
69 |
//get cache
|
| 70 |
$configdata =array();
|
70 |
$configdata =array();
|
| 71 |
$configdata = $this->config->item('payment');
|
71 |
$configdata = $this->config->item('payment');
|
| - |
|
72 |
$checkConfig = $this->config->item('payment');
|
| 72 |
unset($configdata['response'][0]);
|
73 |
unset($configdata['response'][0]);
|
| 73 |
unset($configdata['response'][2]);
|
74 |
unset($configdata['response'][2]);
|
| - |
|
75 |
unset($checkConfig['response'][0]);
|
| - |
|
76 |
unset($checkConfig['response'][2]);
|
| 74 |
$cachemodule = array('header','footer','response');
|
77 |
$cachemodule = array('header','footer','response');
|
| 75 |
$configdata = getCache($configdata,$cachemodule);
|
78 |
$configdata = getCache($configdata,$cachemodule);
|
| 76 |
$newData = array();
|
79 |
$newData = array();
|
| 77 |
foreach ($configdata['response'] as $key => $value) {
|
80 |
foreach ($checkConfig['response'] as $key => $value) {
|
| 78 |
$newData[] = $value;
|
81 |
$newData[] = $value;
|
| 79 |
}
|
82 |
}
|
| 80 |
$newparams = array();
|
83 |
$newparams = array();
|
| 81 |
if(isset($configdata['response'])){
|
84 |
if(isset($configdata['response'])){
|
| 82 |
foreach($newData as $key => $value){
|
85 |
foreach($newData as $key => $value){
|
| Line 87... |
Line 90... |
| 87 |
}
|
90 |
}
|
| 88 |
//end of get cache
|
91 |
//end of get cache
|
| 89 |
$this->lessphp->object()->ccompile('assets/css/recharge.less','assets/css/recharge.css');
|
92 |
$this->lessphp->object()->ccompile('assets/css/recharge.less','assets/css/recharge.css');
|
| 90 |
$data['stylesheet'] = 'recharge.css';
|
93 |
$data['stylesheet'] = 'recharge.css';
|
| 91 |
if(isset($api) && $api == 1){
|
94 |
if(isset($api) && $api == 1){
|
| 92 |
$data['response']=$this->faq_model->getHome($this->input->get(),$this->input->post(),$configdata);
|
95 |
$data['response']=$this->faq_model->getHome($this->input->get(),$this->input->post(),$checkConfig);
|
| 93 |
}elseif(!isset($api)){
|
96 |
}elseif(!isset($api)){
|
| 94 |
$data['response']=$this->faq_model->getHome($this->input->get(),$this->input->post(),$configdata['module']);
|
97 |
$data['response']=$this->faq_model->getHome($this->input->get(),$this->input->post(),$configdata['module']);
|
| 95 |
}
|
98 |
}
|
| 96 |
//print_r($data['response']);
|
99 |
//print_r($data['response']);
|
| 97 |
$tmp = $data['response'];
|
100 |
$tmp = $data['response'];
|