Welcome Guest, Not a member yet? Register   Sign In
help with login form in the template sidebar
#1

[eluser]ralf0909[/eluser]
with "template" library i made this template:

Code:
class Site extends CI_Controller {
function index()
{
     $this->template->write_view('header', 'template/header');
     $this->template->write_view('navbar', 'template/navbar');
     $this->template->write_view('sidebar', 'template/sidebar');
     $this->template->write_view('content', 'home');
     $this->template->write_view('footer', 'template/footer');
     $this->template->render();
}

so i have an header, a navbar, a sidebar, a content where i want to open various page, and a footer.

i want to show the login form inside the sidebar, and when a user is logged the login box will be a box with a logout button.
when a user click on register (under the login box) i need that the form for register a new user is shown in the "content".

how can i integrate Ion Auth with this template? i need just a conceptual idea to understand how to move.
in the Ion Auth documentation there are exemple code, but the code must be put in some controller or in the views of ion auth?




Theme © iAndrew 2016 - Forum software by © MyBB