Archives: 2009 February 19

Safe attributes tip

February 19th, 2009, No Comments

In my last two posts [1, 2] I explained how to define scenario-based validation rules and safe attributes. Something I have noted is that whenever I end up specifying an attribute as “required” in the validation rules(), I also always end up specifying it as “safe” in safeAttributes() under the same scenario. This got me […]

Feed

http://php-thoughts.cubedwater.com / 2009 February 19