On Sun, Oct 10, 2010 at 9:18 AM, Greg Skerman <[email protected]> wrote:
> Hi,
>
> I'm writing a little content manager, and for this i've decided to rewrite
> the pages controller so that it is database driven.
>
> I'm using TinyMCE and markitup as the editors to allow content to be
> created.
>
> My issue is, how do I go about getting cakephp's automagic elements working
> with this? obviously when a user creates an img tag, I would like to convert
> this to a HTMLHelper tag to get around relative paths etc,

Use img tags with absolute paths and be done with it.

> but I also want
> to be able to allow the users to include elements and other helper code in
> their pages.

Now you're looking for trouble.

> Is it a case of parsing the stored page and converting it on the fly to
> include these elements, or is there a way to safely store and later evaluate
> saved php code?

How much do you trust these users?

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 [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

Reply via email to