Subversion Repositories SmartDukaan

Rev

Rev 11012 | Rev 11071 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11012 Rev 11032
Line 62... Line 62...
62
    $data['stylesheet'] = 'recharge.css';
62
    $data['stylesheet'] = 'recharge.css';
63
    $data['title'] = 'Terms & Conditions | saholic.com';
63
    $data['title'] = 'Terms & Conditions | saholic.com';
64
    $data['response']=$this->faq_model->getHome($this->input->get(),$this->input->post(),$this->config->item('faq'));
64
    $data['response']=$this->faq_model->getHome($this->input->get(),$this->input->post(),$this->config->item('faq'));
65
    $this->layout->view('faq/terms_conditions',$data);
65
    $this->layout->view('faq/terms_conditions',$data);
66
  }
66
  }
-
 
67
  public function emi(){
-
 
68
   $data = array();
-
 
69
    //get cache 
-
 
70
    $configdata =array();
-
 
71
    $configdata = $this->config->item('payment');
-
 
72
    unset($configdata['response'][0]);
-
 
73
    unset($configdata['response'][2]);
-
 
74
    $cachemodule = array('header','footer','response');
-
 
75
    $configdata = getCache($configdata,$cachemodule);
-
 
76
    $newData = array();
-
 
77
    foreach ($configdata['response'] as $key => $value) {
-
 
78
      $newData[] = $value;
-
 
79
    }
-
 
80
    $newparams = array();
-
 
81
    if(isset($configdata['response'])){
-
 
82
      foreach($newData as $key => $value){
-
 
83
        if(!array_key_exists($value,$configdata['response'])){
-
 
84
          $api = 1;
-
 
85
        }
-
 
86
      }
-
 
87
    }
-
 
88
    //end of get cache
-
 
89
    $this->lessphp->object()->ccompile('assets/css/recharge.less','assets/css/recharge.css');
-
 
90
    $data['stylesheet'] = 'recharge.css';
-
 
91
    if(isset($api) && $api == 1){
-
 
92
      $data['response']=$this->faq_model->getHome($this->input->get(),$this->input->post(),$configdata);
-
 
93
    }elseif(!isset($api)){
-
 
94
      $data['response']=$this->faq_model->getHome($this->input->get(),$this->input->post(),$configdata['module']);
-
 
95
    }
-
 
96
    //print_r($data['response']);
-
 
97
    $tmp = $data['response'];
-
 
98
    //set cache to output or renew cache
-
 
99
    if(isset($cachemodule) and !empty($cachemodule) && !isset($api))
-
 
100
    {
-
 
101
      foreach($cachemodule as $cm)
-
 
102
      {
-
 
103
        if(isset($configdata[$cm]) and !empty($configdata[$cm]))
-
 
104
        {
-
 
105
          $data['response'][$cm]=$configdata[$cm];
-
 
106
        }
-
 
107
      }
-
 
108
    }
-
 
109
    if(isset($data['response']['response'])){
-
 
110
      foreach($newData as $key => $value){
-
 
111
        if(!array_key_exists($value,$data['response']['response'])){
-
 
112
          $noCache = 1;
-
 
113
        }
-
 
114
      }
-
 
115
    }
-
 
116
    //print_r($newparams);
-
 
117
    if(!isset($noCache)){
-
 
118
      setCache($configdata['module'],$cachemodule,$data['response']);
-
 
119
    }
-
 
120
    //end of set cache\
-
 
121
    $this->layout->view('faq/faq_view',$data);
-
 
122
  }
67
}
123
}
68
 
124
 
69
/* End of file welcome.php */
125
/* End of file welcome.php */
70
/* Location: ./application/controllers/welcome.php */
126
/* Location: ./application/controllers/welcome.php */
71
127