In the find and replace dialog of Textpad I use
Find what: src="images/\(.*\.gif\)"
Replace with: src="<?php echo $html->url('/img/\1')?>"
It assumes your images were in a directory called "images", and now
you have moved them to "img" in the cakePHP directory structure.
The regular expression is greedy, so you will run into trouble if
there is more than one image on a line.
Also, you will have to run it again for jpg images.
I'm sure some more competent regex users could improve on this.
On May 4, 9:22 am, Joel <[EMAIL PROTECTED]> wrote:
> I'm converting my site with a lot of <img src=... html tags to
> cakephp. The major problem is convert all these tags to cakephp $html-
>
> >image helper tags.
>
> Is there any tool to automatize this process ou another method to do
> this without rewrite all these tags?
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---