Ucase 2
This commit is contained in:
Executable
+22
@@ -0,0 +1,22 @@
|
|||||||
|
<?php
|
||||||
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||||
|
|
||||||
|
class Main extends MY_Controller {
|
||||||
|
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
parent::__construct();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function index()
|
||||||
|
{
|
||||||
|
if( $this->authenticated == FALSE ) return $this->showLoginPage();
|
||||||
|
|
||||||
|
$this->load->view('main_view');
|
||||||
|
}
|
||||||
|
|
||||||
|
private function showLoginPage()
|
||||||
|
{
|
||||||
|
$this->load->view('pages/login/login_view');
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user