Yii Framework Forum: [EXTENSION] EPhoto Validator - Yii Framework Forum

Jump to content

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

[EXTENSION] EPhoto Validator Rate Topic: -----

#21 User is offline   vladm 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 19
  • Joined: 26-December 09

Posted 10 February 2011 - 04:31 PM

View PostGodFather, on 10 February 2011 - 08:25 AM, said:

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
0

#22 User is offline   squall2501 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 01-May 12

Posted 01 May 2012 - 09:45 PM

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
0

#23 User is offline   rosinghal 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 18
  • Joined: 05-March 13
  • Location:India

Posted 29 March 2013 - 10:58 PM

Hi, great extension!
Can i give max and min ratio of length/width while uploading?
Xtendify - A marketplace for plugins and themes.
0

#24 User is offline   Shakil Hussain 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 27
  • Joined: 12-February 14
  • Location:Dhaka, Bangladesh

Posted 08 March 2014 - 07:27 AM

View Postemix, on 03 May 2009 - 04:53 PM, said:

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.....
0

Share this topic:


  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users