I am trying to create new component with plugin in joomla 3.0
i successfully install component. my requirement is install plugin with component but some problem in installation.
For that i create plugin xml.
and in main manifest.xml file i write this code.
<plugins>
<plugin plugin="switcher" group="system">
<files folder="plg_system_switcher">
<file>switcher.php</file>
<file>switcher.xml</file>
</files>
</plugin>
</plugins>
and i create script file afterinstall in that i write this code.
jimport('joomla.utilities.xmlelement');
jimport('joomla.utilities.simplexml');
$plugins = $this->manifest->plugins;
i want plugins info from $this->manifest but manifest not return any object like plugins.
Please help,
Thanks in advance.
Mayur.
jimport('legacy.utilities.xmlelement');
else use the PHP SimpleXML Element class – George Wilson