[eluser]NateL[/eluser]
A few questions after using the Auth library for a bit...
How does the auth library pass information to the view?
If I have the following controller (note the 'pagetitle'):
Code:
class Pages extends Application
{
function Pages()
{
parent::Application();
$this->auth->restrict('admin');
$this->load->model($this->models."pagesmodel", 'pages');
$data['pagetitle'] = 'Page Management';
}
function manage(){
$data['pages'] = $this->pages->get_all_pages(); // Grab an array of all pages from the database
$this->auth->view('pages/manage');
}
}
My view (manage.php) will display an array of pages (i have just var_dump($data) in manage.php)
What I don't understand is why
$data['pagetitle'] = 'Page Management'; does not come through?
However, if I put
$data['pagetitle'] = 'Page Management'; inside the
manage method, it comes through.
any ideas?
Some other questions and suggestions...
Do you intend on adding additional information to the "edit user" page? Right now, all a user can edit is their e-mail address.
Really, users should be able to modify their password too. Admins should be able to change their user group from a drop down.