php - Yii error summary default message change -


hi not familiar yii framework, can show me how change default errorsummary message? i've looked @ yii guide , confused me. need add model , need in view? thanks

write default message rules section of model shown below

public function rules()     { array('attrubutename', 'required','message' => 'your message'),         } 

updated try

<?php echo $form->errorsummary($model,'your message goes here'); ?> 

Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -