Really useful dima. Thanks. What i really want to do with Image is to
represent an image as an object. Like this:

<?php
   vendor('image');
   $thumb = new Image('productos/thumbs/1.jpg');
   $big = new Image('productos/big/1.jpg');

if ($thumb->exists()) {
   echo '<a href="<?php echo $big->getFullPath()?>"
onclick="window.open(this.href,'','width=<?php echo
$big->width?>,height=<?php echo $big->height?>')">
   echo $thumb->toHtml(array('border' => 0));
   echo '</a>';
}

?>

Now as a component is no useful because i can only have one instance of
the object (i think).
I saw the File class perfect for this purpose. So i extend it.
This class is for cake only. No plans for using elsewhere.
If work ill cleanit up i little bit and uploaded. Maybe somebody likes.
Thanks for your help ;)
Also pardon my english


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to