Thursday, August 29, 2013

Re: Element Path Help

Not that I know of and by looking at the source, it doesn't seem so
either: https://github.com/cakephp/cakephp/blob/c1ae41da510befbc514a59ca486fb79d2a18f158/lib/Cake/View/View.php#L371-L423

The only way I can think of doing is by putting the required element
in a Plugin, then it will be accessible by any theme.


On Fri, Aug 30, 2013 at 2:49 AM, Advantage+ <movepixels@gmail.com> wrote:
> The "admin" section of the site is displaying from inside Themed/Admin and I
> am trying to grab an element outside of the theme.
>
>
>
> How do you correctly specify to look outside of the theme? echo
> $this->Element(); works fine for elements within the theme but to access the
> root Element folder?
>
>
>
> Thanks,
>
> Dave
>
> --
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>
> ---
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cake-php+unsubscribe@googlegroups.com.
> To post to this group, send email to cake-php@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php.
> For more options, visit https://groups.google.com/groups/opt_out.



--
Simon Males

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: