From dd613d43d8b079e0a421f8c3982278619fcebaef Mon Sep 17 00:00:00 2001 From: Olusesan Ameye Date: Fri, 24 Jan 2020 18:09:06 -0500 Subject: [PATCH] fix --- www/application/controllers/Auth.php | 18 +++++++++++++++--- www/application/views/home/home.php | 6 +++--- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/www/application/controllers/Auth.php b/www/application/controllers/Auth.php index 347d033..b3fac3b 100644 --- a/www/application/controllers/Auth.php +++ b/www/application/controllers/Auth.php @@ -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; + } + } diff --git a/www/application/views/home/home.php b/www/application/views/home/home.php index d212921..a0f2def 100644 --- a/www/application/views/home/home.php +++ b/www/application/views/home/home.php @@ -70,7 +70,7 @@ - MobileApp + CoreGrade @@ -174,7 +174,7 @@

Institutional

-

Coregrade is intended to assist pattern in the development of your learning. Knowledge, skills, and attitudes learning paths are personalized for maximum support.Acquire knowledge the fun way!centrality in addressing your primary goal

+

CoreGrade is intended to assist pattern in the development of your learning. Knowledge, skills, and attitudes learning paths are personalized for maximum support.Acquire knowledge the fun way!centrality in addressing your primary goal