Skip to content

Commit

Permalink
Merge pull request #98 from kishor10d/stucture_user
Browse files Browse the repository at this point in the history
Restructured the user views into folders
  • Loading branch information
kishor10d authored Jun 23, 2022
2 parents d80b2f3 + 5d41574 commit a65693c
Show file tree
Hide file tree
Showing 16 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion application/controllers/Error_404
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Errorr_404 extends CI_Controller

if(!isset($isLoggedIn) || $isLoggedIn != TRUE)
{
$this->load->view('login');
$this->load->view('users/login');
}
else
{
Expand Down
6 changes: 3 additions & 3 deletions application/controllers/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function isLoggedIn()

if(!isset($isLoggedIn) || $isLoggedIn != TRUE)
{
$this->load->view('login');
$this->load->view('users/login');
}
else
{
Expand Down Expand Up @@ -109,7 +109,7 @@ public function forgotPassword()

if(!isset($isLoggedIn) || $isLoggedIn != TRUE)
{
$this->load->view('forgotPassword');
$this->load->view('users/forgotPassword');
}
else
{
Expand Down Expand Up @@ -203,7 +203,7 @@ function resetPasswordConfirmUser($activation_id, $email)

if ($is_correct == 1)
{
$this->load->view('newPassword', $data);
$this->load->view('users/newPassword', $data);
}
else
{
Expand Down
14 changes: 7 additions & 7 deletions application/controllers/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function index()
{
$this->global['pageTitle'] = 'CodeInsect : Dashboard';

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

/**
Expand All @@ -55,7 +55,7 @@ function userListing()

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

$this->loadViews("users", $this->global, $data, NULL);
$this->loadViews("users/users", $this->global, $data, NULL);
}
}

Expand All @@ -75,7 +75,7 @@ function addNew()

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

$this->loadViews("addNew", $this->global, $data, NULL);
$this->loadViews("users/addNew", $this->global, $data, NULL);
}
}

Expand Down Expand Up @@ -171,7 +171,7 @@ function editOld($userId = NULL)

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

$this->loadViews("editOld", $this->global, $data, NULL);
$this->loadViews("users/editOld", $this->global, $data, NULL);
}
}

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

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

/**
Expand Down Expand Up @@ -308,7 +308,7 @@ function loginHistoy($userId = NULL)

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

$this->loadViews("loginHistory", $this->global, $data, NULL);
$this->loadViews("users/loginHistory", $this->global, $data, NULL);
}
}

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

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

/**
Expand Down
2 changes: 1 addition & 1 deletion application/libraries/BaseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function loadThis() {
$this->global ['pageTitle'] = 'CodeInsect : Access Denied';

$this->load->view ( 'includes/header', $this->global );
$this->load->view ( 'access' );
$this->load->view ( 'general/access' );
$this->load->view ( 'includes/footer' );
}

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit a65693c

Please sign in to comment.