This commit is contained in:
2017-12-25 20:23:32 +01:00
parent 1175a4f8ff
commit 0cc882060c
36 changed files with 781 additions and 86 deletions
+9 -9
View File
@@ -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' );
}
}