Skip to content

Commit a65693c

Browse files
authored
Merge pull request #98 from kishor10d/stucture_user
Restructured the user views into folders
2 parents d80b2f3 + 5d41574 commit a65693c

16 files changed

Lines changed: 12 additions & 12 deletions

File tree

application/controllers/Error_404

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class Errorr_404 extends CI_Controller
3434

3535
if(!isset($isLoggedIn) || $isLoggedIn != TRUE)
3636
{
37-
$this->load->view('login');
37+
$this->load->view('users/login');
3838
}
3939
else
4040
{

application/controllers/Login.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function isLoggedIn()
3535

3636
if(!isset($isLoggedIn) || $isLoggedIn != TRUE)
3737
{
38-
$this->load->view('login');
38+
$this->load->view('users/login');
3939
}
4040
else
4141
{
@@ -109,7 +109,7 @@ public function forgotPassword()
109109

110110
if(!isset($isLoggedIn) || $isLoggedIn != TRUE)
111111
{
112-
$this->load->view('forgotPassword');
112+
$this->load->view('users/forgotPassword');
113113
}
114114
else
115115
{
@@ -203,7 +203,7 @@ function resetPasswordConfirmUser($activation_id, $email)
203203

204204
if ($is_correct == 1)
205205
{
206-
$this->load->view('newPassword', $data);
206+
$this->load->view('users/newPassword', $data);
207207
}
208208
else
209209
{

application/controllers/User.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function index()
2828
{
2929
$this->global['pageTitle'] = 'CodeInsect : Dashboard';
3030

31-
$this->loadViews("dashboard", $this->global, NULL , NULL);
31+
$this->loadViews("general/dashboard", $this->global, NULL , NULL);
3232
}
3333

3434
/**
@@ -55,7 +55,7 @@ function userListing()
5555

5656
$this->global['pageTitle'] = 'CodeInsect : User Listing';
5757

58-
$this->loadViews("users", $this->global, $data, NULL);
58+
$this->loadViews("users/users", $this->global, $data, NULL);
5959
}
6060
}
6161

@@ -75,7 +75,7 @@ function addNew()
7575

7676
$this->global['pageTitle'] = 'CodeInsect : Add New User';
7777

78-
$this->loadViews("addNew", $this->global, $data, NULL);
78+
$this->loadViews("users/addNew", $this->global, $data, NULL);
7979
}
8080
}
8181

@@ -171,7 +171,7 @@ function editOld($userId = NULL)
171171

172172
$this->global['pageTitle'] = 'CodeInsect : Edit User';
173173

174-
$this->loadViews("editOld", $this->global, $data, NULL);
174+
$this->loadViews("users/editOld", $this->global, $data, NULL);
175175
}
176176
}
177177

@@ -271,7 +271,7 @@ function pageNotFound()
271271
{
272272
$this->global['pageTitle'] = 'CodeInsect : 404 - Page Not Found';
273273

274-
$this->loadViews("404", $this->global, NULL, NULL);
274+
$this->loadViews("general/404", $this->global, NULL, NULL);
275275
}
276276

277277
/**
@@ -308,7 +308,7 @@ function loginHistoy($userId = NULL)
308308

309309
$this->global['pageTitle'] = 'CodeInsect : User Login History';
310310

311-
$this->loadViews("loginHistory", $this->global, $data, NULL);
311+
$this->loadViews("users/loginHistory", $this->global, $data, NULL);
312312
}
313313
}
314314

@@ -321,7 +321,7 @@ function profile($active = "details")
321321
$data["active"] = $active;
322322

323323
$this->global['pageTitle'] = $active == "details" ? 'CodeInsect : My Profile' : 'CodeInsect : Change Password';
324-
$this->loadViews("profile", $this->global, $data, NULL);
324+
$this->loadViews("users/profile", $this->global, $data, NULL);
325325
}
326326

327327
/**

application/libraries/BaseController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ function loadThis() {
125125
$this->global ['pageTitle'] = 'CodeInsect : Access Denied';
126126

127127
$this->load->view ( 'includes/header', $this->global );
128-
$this->load->view ( 'access' );
128+
$this->load->view ( 'general/access' );
129129
$this->load->view ( 'includes/footer' );
130130
}
131131

File renamed without changes.

0 commit comments

Comments
 (0)