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’):
class Pages extends Application
$data['pagetitle'] = 'Page Management';
$data['pages'] = $this->pages->get_all_pages(); // Grab an array of all pages from the database
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.
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.