Welcome Guest, Not a member yet? Register   Sign In
Setting a global variable in a controller?
#4

[eluser]Matrices[/eluser]
Ok I've replaced function Admin() with this code, and removed the $omit definitions from the individual functions:

Code:
function Admin()
    {
        parent::Controller();
        
        // Setting the fields which the view mode will ignore
        $this->omit = array(
                         'ID',
                           );
                            
        $this->load->scaffolding('articles');
    }

However I'm still receiving an error that omit is not defined.


Messages In This Thread
Setting a global variable in a controller? - by El Forum - 08-07-2008, 11:42 AM
Setting a global variable in a controller? - by El Forum - 08-07-2008, 01:28 PM
Setting a global variable in a controller? - by El Forum - 08-07-2008, 01:29 PM
Setting a global variable in a controller? - by El Forum - 08-07-2008, 02:02 PM
Setting a global variable in a controller? - by El Forum - 08-07-2008, 02:06 PM
Setting a global variable in a controller? - by El Forum - 08-07-2008, 02:52 PM
Setting a global variable in a controller? - by El Forum - 08-08-2008, 12:15 AM
Setting a global variable in a controller? - by El Forum - 08-08-2008, 12:33 AM
Setting a global variable in a controller? - by El Forum - 08-08-2008, 01:03 AM
Setting a global variable in a controller? - by El Forum - 08-08-2008, 01:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB