I can’t get {attribute} in custom message to work. It always shows as is. Here’s a snippet:
array('crew_code', 'exist', 'attributeName'=>'crew_code', 'className'=>'Crew', 'message'=>'crew {crew_code} does not exist'),
the following will display an error upon invalid data, but {crew_code} doesn’t convert to attribute’s value, it just shows {crew_code} in the message. What am I doing wrong here?
What does “safe” really mean in rules? I see in the docs it says it’s safe for mass assign, but not really sure I understand. Is it the same as leaving an attribute out of rules completely, what’s the difference? And I take it since Yii uses PDO, I should have no concern in regards to injections, right?