Call a plugin's method from admin templates

Call a plugin's method from admin templates

Postby rahiarii on Sun Jan 25, 2009 3:41 pm

We can call a plugin's method from user's template as {$myPluginId->myMethod()}.

But it doesn't work from an admin template (template/admin/*).

How can I call my plugin's method from the admin's template ?
rahiarii
 
Posts: 1
Joined: Sat Jan 24, 2009 3:03 pm
LifeType Version: 1.2.8_r6440

Re: Call a plugin's method from admin templates

Postby jondaley on Sun Jan 25, 2009 9:48 pm

The most common use-case is to register for different events in the admin interface. I am not sure if you can call plugins directly in the admin interface.
jondaley
Lifetype Expert
 
Posts: 6169
Joined: Thu May 20, 2004 6:19 pm
Location: Pittsburgh, PA, USA
LifeType Version: 1.2.11 devel branch


Return to General Plugin Development

cron