Load plugin element from subfolder in Cake 2.1
When requesting elements from a plugin, doc says that $options['plugin'] was deprecated in v2.1 and support for plugin syntaxis was added.
So, to echo an element form within a plugin, you should use
echo $this->element('Plugin.element');
But, if the plugin element is nested inside some folder(s), what should I do?
I've tried
$this->element(Path.DS.To.DS.Element.DS.'Plugin.element');
$this->element(Plugin.'.'.Path.DS.To.DS.Element.DS.'element');
and both of them with a preceding DS, with no result.
Asked by Xoubaman, on 10/2/12
1 Answer
I was sure I tried that and didn't work... lack of sleep or something like that.
It works, thanks
Xoubaman - on 13/2/12
<< comments | comments >>
<< previous next >>
Rating
0
Viewed
452 times
Last Activity
on 14/2/12






