Posted 07 May 2012 - 10:33 AM
I think there are some things that can be handled by the model and of course allow removing of some code duplicates.
Example:
public function rules() {
return array(
array('country','length','max' => 48),
...
And:
<?php echo $form->textField($model,'country',array('size'=>48,'maxlength'=>48)); ?>
In CHtml::activeform "size" and "maxlength" parameters should be automatically generated when modifying the model. So we'll don't have to redefine it in the view.
And [for] their saying, "Indeed, we have killed the Messiah, Jesus, the son of Mary, the messenger of God ." And they did not kill him, nor did they crucify him; but [another] was made to resemble him to them. And indeed, those who differ over it are in doubt about it. They have no knowledge of it except the following of assumption. And they did not kill him, for certain.Rather, God raised him to Himself.