Welcome Guest, Not a member yet? Register   Sign In
Question on auth check with simplelogin
#12

[eluser]San2k[/eluser]
[quote author="Sumon" date="1221165731"]why not this way? create 2 separate controller in the following way
Code:
class MyPROG extends Controller {
    function MyPROG ()
    {
        parent::Controller();
             $user_table = 'users';
         $this->load->helper(array('form', 'url'));

         if(!$this->session->userdata('logged_in'))
             redirect('auth/login');
    }
class Auth extends Controller {
    function Auth()
    {
       parent::controller();
    }
    function login()
    {
       $this->load->view('login_page');
    }
[/quote]

Works grate! Thanks allot!

Thanks for help to everyone.


Messages In This Thread
Question on auth check with simplelogin - by El Forum - 09-10-2008, 12:42 AM
Question on auth check with simplelogin - by El Forum - 09-11-2008, 03:43 AM
Question on auth check with simplelogin - by El Forum - 09-11-2008, 05:53 AM
Question on auth check with simplelogin - by El Forum - 09-11-2008, 06:10 AM
Question on auth check with simplelogin - by El Forum - 09-11-2008, 06:13 AM
Question on auth check with simplelogin - by El Forum - 09-11-2008, 06:14 AM
Question on auth check with simplelogin - by El Forum - 09-11-2008, 06:41 AM
Question on auth check with simplelogin - by El Forum - 09-11-2008, 06:43 AM
Question on auth check with simplelogin - by El Forum - 09-11-2008, 08:15 AM
Question on auth check with simplelogin - by El Forum - 09-11-2008, 08:17 AM
Question on auth check with simplelogin - by El Forum - 09-11-2008, 09:42 AM
Question on auth check with simplelogin - by El Forum - 09-11-2008, 10:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB