As I couldn't find a solution, I resorted to add an inner $pluginName
var to my *Plugin*AppModel.
On Jul 4, 8:03 pm, Pixelastic wrote:
> Hello,
>
> I would have wanted to know if there is a way to find the name of the
> actual plugin being executed from inside a model method (this model
> being part of the plugin).
>
> Here is my setup : I have a plugin containing a model, a view and a
> controller. When inside the view or the controller I can access the
> actual plugin with $this->plugin and $this->params['plugin'] but I
> can't find a way to access this same information from the model scope.
>
> I need this information because I'm working with I18n and I'm
> splitting my translations into different .mo/.po files, named
> according to the plugin name. And I have some translation occuring in
> the __construct() method of my model and can't find a way to
> automatically detect the plugin name.
>
> Thanks in advance for any pointers
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---