I have what I think is a simplw question. I have installed AG Auth, I can show the login form on any view page, but I can’t actually log in. It’s as if the form doesn’t have any functionality unless it is in the actual auth/pages/login page. Here is my Controller.
<?php
class Pages extends Application
{
public function __construct()
{
parent::__construct();
}
public function login()
{
$this->ag_auth->login(‘user/dashboard’);
// user/dashboard is a made up URI string
}
public function view($page = ‘home’)
{
if ( ! file_exists(‘application/views/pages/’.$page.’.php’))
{
// Whoops, we don’t have a page for that!
show_404();
}
$data[‘title’] = ucfirst($page); // Capitalize the first letter
$this->load->view(‘templates/header’, $data);
$this->load->view(‘pages/’.$page, $data);
$this->load->view(‘templates/footer’, $data);
}
}
/* End of file: home.php */
/* Location: application/controllers/home.php */
then in the view I use the login form code. Any help would be great.