I'm using CodeIgniter for my php framework and TankAuth for my authorization/registration. By default, TankAuth places the registration and login forms on separate pages. I would like to place the log-in form in the navigation bar that occurs on every page. There is also a sign-up page that will have the registration form occurring simultaneously as the log-in form (located in the navbar).
I am currently using this in controllers/signup.php .index()...
$this -> load -> view('templates/header');
$this -> login();
$this -> register();
$this -> load -> view('templates/footer');
This displays correctly but I have two issues:
1 Will I have to redefine TankAuth's methods in every controller that will have the log-in form?
2 When I try to register it tells me that the log-in form should be filled out as well. That's obviously a catch-22.
(I apologize if this is too domain specific or vague; I hope it makes sense to those who have worked with the framework.)