Im developing a library called Image who extends File. Its allow renaming, moving, finding, resizing, deleting images and (specially), printing img tags into the document. It does some job with the image that has to be in the controller but also print the image as html. So you see, can't be a component or a helper. So i made it a vendor library. But when it prints the img tag, can find a way to print the src like $html->image() does. (I mean correctly)
Example: Right: <img src="/mysite/html/images/productos/thumbs/1.jpg" /> Wrong: <img src="/mysite/html/catalogo/images/productos/thumbs/1.jpg" /> The webroot its '/mysite/html/'. Its there a way to get $webroot in a vendor library so i can create the code like $html->image()? I check the cake folder but can't find any var containing $webroot that i can access in a "clean" way. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
