Welcome Guest, Not a member yet? Register   Sign In
restricting scaffolding
#3

[eluser]misterdonut[/eluser]
can i do it like this
Code:
<?php
class Blog extends Controller {

       function Blog()
       {
            parent::Controller();

            if ($_SESSION['access']=== TRUE) //use session for checking?
            {
                 $this->load->scaffolding('table_name');
            }
            else
            {
                 redirect('user/login');
            }
       }
}
?>


Messages In This Thread
restricting scaffolding - by El Forum - 07-27-2008, 08:27 PM
restricting scaffolding - by El Forum - 07-27-2008, 09:31 PM
restricting scaffolding - by El Forum - 07-27-2008, 11:07 PM
restricting scaffolding - by El Forum - 07-28-2008, 12:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB