• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Yii Validation Style in CodeIgniter


i'd like to have something like this for the form_validation library of CodeIgniter:

return array(
        array('title, content, status', 'required'),
        array('title', 'length', 'max'=>128),
        array('status', 'in', 'range'=>array(1,2,3)),
(Source: http://www.yiiframework.com/doc/blog/1.1/en/post.model)

So, i just want to sumarize some validations like "required", since i don't want to set a rule for "required" for each attribute.

I thought maybe it's possible without writing my own code?

I really like CodeIgniter, but the best possible framework i can think of, would be a combination of CodeIgniter, Kohana and Yii.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.