hi everyone
i am just starting out with CI - i really want to use it for a website i am starting - however - i cant seem to get my head around how to have a login form on every page.
at the moment i have the login form as part of my header.php in the “views” folder. but that is as far as I can get.
i want to just use my own login code (which simply checks the db and sets the sessions - or returns an error message) but i have no idea how to set this all up in the mvc approach. i also dont know how to redirect the user back to the same page they were viewing before submitting the login form (i would normally use hidden or get fields here if I wasnt using CI).
basically - i am lost. any help would be appreciated - if i can get past this i know CI will be very beneficial.
cheers.
