Thank you very much Andrey I have another question. I have protected the Transfer Directory where i have uploaded images If I use the cakephp html helper to show these images in my pages I can't show anything With media helper is it possible to show these image in my pages or I must use another method? Many Thanks
On 18 Giu, 21:01, Andrey Mozharovsky <mozharov...@gmail.com> wrote: > Hi Marco, > > You may probably use Medium helper and specify the file version there. For > e.g. > in your view you may try to do something like this: > > <?php echo $media->embed('s/transfer/img/' . $photo['basename']); ?> > > this snippet will render 's' version of image. > > > Hi > > I use MediaPlugin of David Persson. > > All works perfectly. > > I have only this question about the use of this plugin > > I have the model Photo that is configurated like : > > > var $actsAs = array( > > 'Media.Polymorphic' => array( > > 'classField' => 'model', > > 'foreignKey' => 'foreign_key', > > ), > > 'Media.Transfer' => array( > > 'trustClient' => false, > > 'destinationFile' => '......., > > 'baseDirectory' => MEDIA_TRANSFER, > > 'createDirectory' => true, > > 'alternativeFile' => 100 > > ), > > 'Media.Media' => array( > > 'metadataLevel' => 2, > > 'makeVersions' => true, > > 'filterDirectory' => MEDIA_FILTER, > > )); > > > The plugin is configurated to have version "m",'l',"xl" > > > Now this model is in hasOne relation with another model. > > > I have noted that when I do a read operation with this another model I > > can't get the various resized version of Photo but only the single > > record relative to main photo. > > How can I to get all the resized version of photo? > > > Many Thanks > > Marco > > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others > > with their CakePHP related questions. > > > You received this message because you are subscribed to the Google Groups > > "CakePHP" group. To post to this group, send email to > > cake-php@googlegroups.com > > To unsubscribe from this group, send email to > > cake-php+unsubscr...@googlegroups.com For more options, visit this group at > >http://groups.google.com/group/cake-php?hl=en > > > > signature.asc > < 1KVisualizzaScarica Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en