On 3 mayo, 02:48, gerbenzomp <[EMAIL PROTECTED]> wrote:
> A while ago AD7six told me that it is possible to override the default
> path of an element when calling renderElement(). Up to now, it hasn't
> become clear to me how to change that path, and what the path should
> look like.
>
> When an element resides in app/plugins/my_plugin/views/elements/
> my_element.thtml, how would I point to that location using
> renderElement(); ?

Hi gerbenzomp,

If something is a bit difficult to do, it's wise to think if you are
trying to do something a 'wrong' way.

You can easily make cake look for an element in a subfolder of where
it would normally look (echo $this->renderElement('folder/subfolder/
file');) it is very difficult to make cake look for an element in a
plugin, when you are not in it unless you write the code to do so
yourself.

Why not just move this (surely generic) plugin element to your app
view element folder?

hth,

AD


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

Reply via email to