Welcome Guest, Not a member yet? Register   Sign In
Yii Validation Style in CodeIgniter
#1

[eluser]MathBoon[/eluser]
Hi,

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

Code:
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.




Theme © iAndrew 2016 - Forum software by © MyBB