0 Replies - 215 Views - Last Post: 12 March 2012 - 12:59 AM Rate Topic: -----

#1 menukadevinda  Icon User is offline

  • D.I.C Regular

Reputation: -7
  • View blog
  • Posts: 470
  • Joined: 14-April 11

how do we define our own native rule in codeiter

Posted 12 March 2012 - 12:59 AM

Hi all,

I am using codeigniter freamwork. The following is a list of all the native rules that are available to use:

required No Returns FALSE if the form element is empty.
matches Yes Returns FALSE if the form element does not match the one in the parameter. matches[form_item]
is_unique Yes Returns FALSE if the form element is not unique to the table and field name in the parameter. is_unique[table.field]

what I need is definig my own native rule. I tried to find where codeigniter has defined above rules. but I coudnt find it.

If anybody can plz help me to find the above native rules where they are defined. or help me to define native methode.


thanks in advance.........

Is This A Good Question/Topic? 0
  • +

Page 1 of 1