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