[EXTENSION] EPhoto Validator

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

Hi, great extension!

Can i give max and min ratio of length/width while uploading?

plz i cant download it…plz give it again…