Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
12694 anikendra 1
<?php
2
if (!defined('BASEPATH'))exit('No direct script access allowed');
3
 
4
 
5
 
6
Class Error_page extends MY_Controller {
7
 
8
 
9
	 function __construct()
10
    {
11
        // Call the CI_controller constructor
12
        parent::__construct();
13
		$this->load->helper('url');
14
		$this->layout->setlayout('layout/layout_view');
15
	}
16
 
17
 
18
	function index(){
19
		//$data = array();
20
		//$url = 'http://www.saholic.com/'.uri_string();
21
		//$data['errorurl'] = $url;
22
		$this->output->set_status_header('404');
23
		$this->load->view('error_page_view');
24
 
25
	}
26
 
27
	function api_error(){
28
		$this->layout->view('error_page_view');
29
 
30
	}
31
 
32
 
33
}