[eluser]kingnutter[/eluser]
Hi everyone,
I have just styled a Codeigniter website with Bootstrap and would like the "Log In" form in the navigation bar to pop up as a modal.
Pasting the form into the view results in undefined variables $login_by_username and $show_captcha (I am using the tank_auth library).
I currently load a template view in each controller containing header, nav, body view and footer, but how can I call the above variables without having to change every controller function? I am already have $this->load->library('tank_auth'); in each __construct.
Basically I need a universal controller that calls the tank_auth model to retrieve variables for a navbar sign in modal.
Any pointers welcome.
Cheers!