Thank you for this. Problem now is that it will call the element()
function even if its corresponding tag is not found. 
http://php.pastebin.com/782A86ZM

I want it to only call element() when its tag is found inside
$page['Page']['content']. I tried something like this and it doesn't
work: http://php.pastebin.com/2dnL11CG

I also tried putting echo statements like this: http://php.pastebin.com/zGDfY0aY
but that renders the element even before $newContent is printed/
echoed.

On Jun 12, 7:07 pm, euromark <dereurom...@googlemail.com> wrote:
> check outhttp://api.cakephp.org/class/string
>
> this will do the trick
>
> On 12 Jun., 10:05, ramonmaruko <ramonmar...@gmail.com> wrote:
>
>
>
> > I want to be able to input like this in a textarea:
>
> > [videos]
>
> > and when the field containing that is displayed, the [videos]tagwill
> > instead be replaced with a call to the videos element.
>
> > echo $this->element('videos');
>
> > How would I be able to do this?

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