fix
This commit is contained in:
@@ -7,9 +7,13 @@ class Auth extends CI_Controller {
|
||||
public function index() {
|
||||
//$this->load->view('home/home');
|
||||
// echo "START LOGIN";
|
||||
$this->load->view('auth/view_head');
|
||||
$this->load->view('auth/view_login');
|
||||
$this->load->view('auth/view_foot');
|
||||
$data = array();
|
||||
|
||||
$this->renderAuthPages('view_login',$data);
|
||||
|
||||
//$this->load->view('auth/view_head');
|
||||
//$this->load->view('auth/view_login');
|
||||
//$this->load->view('auth/view_foot');
|
||||
}
|
||||
|
||||
public function newuser() {
|
||||
@@ -27,4 +31,12 @@ class Auth extends CI_Controller {
|
||||
$this->load->view('auth/view_foot');
|
||||
}
|
||||
|
||||
private function renderAuthPages($pagename, $data) {
|
||||
|
||||
$this->load->view('auth/view_head');
|
||||
$this->load->view('auth/'.$pagename, $data);
|
||||
$this->load->view('auth/view_foot');
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user