Hi guys!

I saw a really neat piece of code a few weeks ago, but forgot to
bookmark it and am running crazy now.

I was actually a component that did the following:

You put [image:123] in your text (e.g. Post text) and save it.

When you're reading the data out, you do $post['Post']['text'] = $this-
>Component->parse($post['Post']['text']);

And it automatically replaces [image:123] with the exact path like
<img src="/img/123.jpg" />

If anyone has seen this in action or has an idea how to replicate this
behavior, please reply :-)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to