When I try to use trim in the following line in my controller it applies the required, but not trim. The string ' some thing' gets stored to the database as ' some thing' not 'some thing' . I need to have spaces in the string so alpha_dash is not going to work for me either. Are additional libraries of helpers need to make trim work?
$crud->set_rules('fname','First Name','trim|required');
Any help is greatly appreciated.