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

[eluser]xwero[/eluser]
Hannes i think you are looking at the wrong code Wink

Code:
// Get the table fields
        $fields = $this->db->list_fields('categories');
        $omit = array(
                         'ID',
                     );
        
        while (list ($key, $val) = each ($fields)) {
        
          if (in_array ($key, $omit)) unset ($fields[$key]);
        
        }
He uses it to remove fields he got from the db->list_fields method.


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