MVC modeli, CodeIgniter ve auth

0 Cevap php

i MVC Modeli asmak almak başlıyor, ama ben yine de bazı sorularım var. Bu onlardan biri

I have a website with 6 or 7 main pages. They all share the header view where the logo is, the top menu, the search and, most importantly, a login form consisting of a user and a password text fields, and a submit button.
I want the user to be able to login in any page of the site, and return to the page he was if successful.
What is the best way to call the auth controller to login and make sure the user comes back to the same page (call the correct controller)?

0 Cevap