![]() |
form_validation in model - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: form_validation in model (/showthread.php?tid=46505) |
form_validation in model - El Forum - 11-03-2011 [eluser]Unknown[/eluser] hi, i need to perform validation, setting rules and message in model. I use a model named MY_modelT that generates a form for insert and update data into table in db. For each table i use a model i call {table}_model that extends MY_modelT In {table}_model i create a public array with table structure, and form_validation rules. form_validation library is autoloaded. A simple example: table_model Code: class table_model extends MY_modelT{ In controller {table}_model::validation() is called but field1_check no...why? |