joomla-component

How to install component and route plugin in one package?

旧街凉风 提交于 2019-11-29 15:42:34
I have created custom component and a route plugin for Joomla 1.5 to to provide SEO URLs for my component and also articles and categories which are not menu tied. Now I have to install my component and route plugin separately. Is there a way to install both in one package please? Thank you in advance! Vojtech When any extension installed Joomla triggers an event 'com_yourcomponent_install()' to your install file, which you have mentioned in xml file. write a function com_yourcomponent_install in which get the path of plugin folder and install it $installer = new JInstaller(); // Install the

How to use multiple models in joomla MVC Component

邮差的信 提交于 2019-11-29 05:10:11
I am using different model in joomla than view's own model that is similar to its name by assigning it from controller, like: $view->setModel($this->getModel('user')); Now how can I use its method getSingleUser($user_id) in view. In an example in joomla documentation , it is using is some thing like this: $this->get("data1","model2"); So I assume data1 is name of method in model2? If so then how can I pass argument that is userid in my case. I know this is easy thing that many of joomla developers have done but I am sort of jack of all sort of developer and new to joomla so I am expecting you