Subversion Repositories SmartDukaan

Rev

Rev 10841 | Rev 11032 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
10841 lgm 1
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2
 
3
class Faq extends MY_Controller {
4
 
5
public $layoutName ='';
6
 
7
  function __construct() {
8
 
9
    // Call the CI_controller constructor
10
    parent::__construct();
11
    $admin = $this->session->userdata('admin');
12
    if(!isset($admin) || empty($admin)) {
13
      redirect(base_url().'authorize');
14
    }
15
    $this->layout->setlayout('layout/layout_main');
16
    $this->load->model('faq_model');
17
    $this->layoutName= $this->layout->getLayout();
18
    $this->layoutName =substr($this->layoutName , 0, strrpos($this->layoutName , "/")).'/';
19
    // print_r($this->session->all_userdata());
20
 
21
 
22
  }
23
  public function index(){
24
   $data = array();
25
    //get cache 
26
    $configdata =array();
27
    $configdata = $this->config->item('faq');
28
    $cachemodule = array('header','footer');
29
    $configdata = getCache($configdata,$cachemodule);
30
    //end of get cache
31
    $this->lessphp->object()->ccompile('assets/css/recharge.less','assets/css/recharge.css');
32
    $data['stylesheet'] = 'recharge.css';
11012 lgm 33
    $data['title'] = 'Frequently asked quesitons | saholic.com';
10841 lgm 34
    $data['response']=$this->faq_model->getHome($this->input->get(),$this->input->post(),$this->config->item('faq'));
35
    $this->layout->view('faq/faq_view',$data);
36
  }
37
 
38
  public function privacy(){
39
   // $data = array();
40
    //get cache 
41
    $configdata =array();
42
    $configdata = $this->config->item('faq');
43
    $cachemodule = array('header','footer');
44
    $configdata = getCache($configdata,$cachemodule);
45
    //end of get cache
46
    $this->lessphp->object()->ccompile('assets/css/recharge.less','assets/css/recharge.css');
47
    $data['stylesheet'] = 'recharge.css';
11012 lgm 48
    $data['title'] = 'Privacy Policy | saholic.com';
10841 lgm 49
    $data['response']=$this->faq_model->getHome($this->input->get(),$this->input->post(),$this->config->item('faq'));
50
    $this->layout->view('faq/privacy_policy',$data);
51
  }
52
 
53
  public function terms(){
54
   // $data = array();
55
    //get cache 
56
    $configdata =array();
57
    $configdata = $this->config->item('faq');
58
    $cachemodule = array('header','footer');
59
    $configdata = getCache($configdata,$cachemodule);
60
    //end of get cache
61
    $this->lessphp->object()->ccompile('assets/css/recharge.less','assets/css/recharge.css');
62
    $data['stylesheet'] = 'recharge.css';
11012 lgm 63
    $data['title'] = 'Terms & Conditions | saholic.com';
10841 lgm 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);
66
  }
67
}
68
 
69
/* End of file welcome.php */
70
/* Location: ./application/controllers/welcome.php */