Yii, set model value without using a hidden field?

If you need to set the value of $source when displaying the form (because e.g. That's when you have the required data in hand) then create a hidden input control. There's nothing wrong about it; you want to persist a non-default value in your model, and a hidden input element is the way to do that.

Well a form has to post somewhere and in Yii it's advised to post back to the same page.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions