summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2016-09-27 19:18:18 +0200
committerFlorian Pritz <bluewind@xinu.at>2016-11-01 17:29:04 +0100
commit9bb894086ea5c3e8160e57b5993482502f9c1011 (patch)
treeee325170b09c35f2e1cd08d07aae810b3f1eabc0 /application
parent4ecbf84ad980c06b3dc24a948ba12df8960a0c08 (diff)
c/user: Drop $this->view_dir
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application')
-rw-r--r--application/controllers/user.php32
1 files changed, 15 insertions, 17 deletions
diff --git a/application/controllers/user.php b/application/controllers/user.php
index 28abf74a5..71f83b527 100644
--- a/application/controllers/user.php
+++ b/application/controllers/user.php
@@ -12,8 +12,6 @@ class User extends MY_Controller {
function __construct()
{
parent::__construct();
-
- $this->var->view_dir = "user/";
}
function index()
@@ -26,7 +24,7 @@ class User extends MY_Controller {
$this->data["username"] = $this->muser->get_username();
$this->load->view('header', $this->data);
- $this->load->view($this->var->view_dir.'index', $this->data);
+ $this->load->view('user/index', $this->data);
$this->load->view('footer', $this->data);
}
@@ -66,14 +64,14 @@ class User extends MY_Controller {
if ($result !== true) {
$this->data['login_error'] = true;
$this->load->view('header', $this->data);
- $this->load->view($this->var->view_dir.'login', $this->data);
+ $this->load->view('user/login', $this->data);
$this->load->view('footer', $this->data);
} else {
redirect($redirect_uri);
}
} else {
$this->load->view('header', $this->data);
- $this->load->view($this->var->view_dir.'login', $this->data);
+ $this->load->view('user/login', $this->data);
$this->load->view('footer', $this->data);
}
}
@@ -119,7 +117,7 @@ class User extends MY_Controller {
$this->data["query"] = $apikeys["apikeys"];
$this->load->view('header', $this->data);
- $this->load->view($this->var->view_dir.'apikeys', $this->data);
+ $this->load->view('user/apikeys', $this->data);
$this->load->view('footer', $this->data);
}
@@ -169,7 +167,7 @@ class User extends MY_Controller {
$this->data["query"] = $query;
$this->load->view('header', $this->data);
- $this->load->view($this->var->view_dir.'invite', $this->data);
+ $this->load->view('user/invite', $this->data);
$this->load->view('footer', $this->data);
}
@@ -219,7 +217,7 @@ class User extends MY_Controller {
->delete('actions');
$this->load->view('header', $this->data);
- $this->load->view($this->var->view_dir.'registered', $this->data);
+ $this->load->view('user/registered', $this->data);
$this->load->view('footer', $this->data);
return;
} else {
@@ -233,7 +231,7 @@ class User extends MY_Controller {
$this->data["error"] = $error;
$this->load->view('header', $this->data);
- $this->load->view($this->var->view_dir.'register', $this->data);
+ $this->load->view('user/register', $this->data);
$this->load->view('footer', $this->data);
}
@@ -254,7 +252,7 @@ class User extends MY_Controller {
$this->data['username'] = $this->muser->get_username();
$this->load->view('header', $this->data);
- $this->load->view($this->var->view_dir.'delete_account_form', $this->data);
+ $this->load->view('user/delete_account_form', $this->data);
$this->load->view('footer', $this->data);
}
@@ -286,7 +284,7 @@ class User extends MY_Controller {
unset($this->data['user_logged_in']);
$this->load->view('header', $this->data);
- $this->load->view($this->var->view_dir.'delete_account_success', $this->data);
+ $this->load->view('user/delete_account_success', $this->data);
$this->load->view('footer', $this->data);
return;
} else {
@@ -323,7 +321,7 @@ class User extends MY_Controller {
$this->data['username'] = $this->muser->get_username();
$this->load->view('header', $this->data);
- $this->load->view($this->var->view_dir.'reset_password_username_form', $this->data);
+ $this->load->view('user/reset_password_username_form', $this->data);
$this->load->view('footer', $this->data);
}
@@ -368,7 +366,7 @@ class User extends MY_Controller {
$this->data["email_domain"] = substr($userinfo["email"], strpos($userinfo["email"], "@") + 1);
$this->load->view('header', $this->data);
- $this->load->view($this->var->view_dir.'reset_password_link_sent', $this->data);
+ $this->load->view('user/reset_password_link_sent', $this->data);
$this->load->view('footer', $this->data);
}
@@ -398,7 +396,7 @@ class User extends MY_Controller {
->delete('actions');
$this->load->view('header', $this->data);
- $this->load->view($this->var->view_dir.'reset_password_success', $this->data);
+ $this->load->view('user/reset_password_success', $this->data);
$this->load->view('footer', $this->data);
return;
}
@@ -408,7 +406,7 @@ class User extends MY_Controller {
$this->data["error"] = $error;
$this->load->view('header', $this->data);
- $this->load->view($this->var->view_dir.'reset_password_form', $this->data);
+ $this->load->view('user/reset_password_form', $this->data);
$this->load->view('footer', $this->data);
}
@@ -471,7 +469,7 @@ class User extends MY_Controller {
$this->data["profile_data"] = $this->muser->get_profile_data();
$this->load->view('header', $this->data);
- $this->load->view($this->var->view_dir.'profile', $this->data);
+ $this->load->view('user/profile', $this->data);
$this->load->view('footer', $this->data);
}
@@ -630,7 +628,7 @@ class User extends MY_Controller {
}
$this->load->view('header', $this->data);
- $this->load->view($this->var->view_dir.'hash_password', $this->data);
+ $this->load->view('user/hash_password', $this->data);
$this->load->view('footer', $this->data);
}