The "users" will be administrators..not any-old-person who wants to create
pages.

I'm open to *not* including the php...as obviously this isn't very secure.

I guess what i'm asking, is where would i throw a regular expression/replace
to take a comment such as <!---Element(name,params)---> to replace with the
correct cake code?

beforeRender?

And where is the view output stored?

On Mon, Oct 11, 2010 at 8:46 AM, cricket <zijn.digi...@gmail.com> wrote:

> On Sun, Oct 10, 2010 at 9:18 AM, Greg Skerman <gsker...@gmail.com> 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 cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.com>For
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

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