vladm
(Vladmu)
February 10, 2011, 9:31pm
21
Hi, it’s a great extension. I’m using it on my project but I don’t know how can I translate the error message.
Can anyone help me, or show me an example?
Thanks
Hi, thanks for feedback. The extension has English as default language. But in archive you can see a ‘messages’ folder, in my version this folder has two translation: Russian and Ukrainian, you can use them as example. So all what you need is to place your translation to this folder and set your language in application config.
Regards
hello I have the following problem
install the extension without any problems in the components folder
I have the following field on my form
<div class="row">
<?php echo $form->labelEx($model,'foto'); ?>
<?php echo $form->FileField($model,'foto'); ?>
<?php if(!$model->isNewRecord){
echo CHtml::image(Yii::app()->request->baseUrl.'/uploads/'.$model->foto,$model->ciudad, array('width'=>'110', 'height'=>'110'));
}?>
<?php echo $form->error($model,'imagen'); ?>
</div>
And add the following function rules
array('foto','EPhotoValidator', 'types'=>'jpg, gif, png', 'allowEmpty' => false, 'minWidth' => 120, 'minHeight' => 120, 'on' => 'insert')
But I get always this error in action create when i send the form
Undefined index: foto
C:\wamp\www\datos2\protected\components\EPhotoValidator.php(96)
thanks
rosinghal
(Rohitsinghal Rs)
March 30, 2013, 3:58am
23
Hi, great extension!
Can i give max and min ratio of length/width while uploading?
shakilaiub
(Shakil Ymail)
March 8, 2014, 12:27pm
24
This class extends CFileValidator to validate uploaded images so it has its basic functionality plus:
we can validate its mime type, min height, max height, min width and max width.
Version 1.0 alpha, but works
plz i cant download it…plz give it again…