Hi!, I want to do this in a Yii way, but I don’t know how…
I have a table “Ingredients” with “Id_ingredient, name, id_user”. All users can add a new ingredient with a form. But there are a common ingredients like oil, salt, bread, egg, etc…wich has id_user=0. Users can add a new ingredients if there aren’t in the list of common ingredients (id_user=0).
Wich is the best way to do this? validate on model? controller?
Sorry for my english and thanks!