Subversion Repositories SmartDukaan

Rev

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

Rev 11588 Rev 11590
Line 2... Line 2...
2
 
2
 
3
class Statics extends MY_Controller {
3
class Statics extends MY_Controller {
4
 
4
 
5
public $layoutName ='';
5
public $layoutName ='';
6
  
6
  
7
  function __construct() {
7
  public function __construct() {
8
    // Call the CI_controller constructor
8
    // Call the CI_controller constructor
9
    parent::__construct();
9
    parent::__construct();
10
    $this->layout->setlayout('layout/layout_main');
10
    $this->layout->setlayout('layout/layout_main');
11
    $this->layoutName= $this->layout->getLayout();
11
    $this->layoutName= $this->layout->getLayout();
12
    $this->layoutName =substr($this->layoutName , 0, strrpos($this->layoutName , "/")).'/';
12
    $this->layoutName =substr($this->layoutName , 0, strrpos($this->layoutName , "/")).'/';
13
  }
13
  }
14
  
14
  
15
 public function insuranceterms(){
15
  public function insuranceterms(){
16
    $this->lessphp->object()->ccompile('assets/css/recharge.less','assets/css/recharge.css');
16
    $this->lessphp->object()->ccompile('assets/css/recharge.less','assets/css/recharge.css');
17
    $data['stylesheet'] = 'recharge.css';
17
    $data['stylesheet'] = 'recharge.css';
18
    $data['title'] = 'Theft Insurance - Terms and Conditions';
18
    $data['title'] = 'Theft Insurance - Terms and Conditions';
19
    $this->layout->view('statics/insuranceterms',$data);
19
    $this->layout->view('statics/insuranceterms',$data);
20
  }
20
  }
-
 
21
 
-
 
22
  public function invalidoffer(){
-
 
23
    $this->lessphp->object()->ccompile('assets/css/recharge.less','assets/css/recharge.css');
-
 
24
    $data['stylesheet'] = 'recharge.css';
-
 
25
    $data['title'] = 'Expired Offer';
-
 
26
    $this->layout->view('statics/invalidoffer',$data);
-
 
27
  }
21
}
28
}
22
 
29
 
23
/* End of file welcome.php */
30
/* End of file statics.php */
24
/* Location: ./application/controllers/welcome.php */
31
/* Location: ./application/widgets/controllers/statics.php */