I am implementing a MVC component. I wish to pass a value from the controller to the view for displaying. This is very easy. You need to assign the value from the controller.
Then in the view:
That is easy.
Joomla is using the MVC Pattern. There is another feature. You can override display function in controller to trigger whether the controller will display the template. In the following example, I will not display the template when the form is submitted.
I am building a component using JSON in Joomla. That is very hard to do that. So far, I built in a view.json.php in views folder. But I could not call it. Well, that is easy! You just need to add a parameter ,format=json, in the url.
I found the documentation, in the framework, that is a method calls AddScript. It will add a script in the header section. That is nice!
But please adding this in the component xml file:
It makes sure the script folder will be deployed.
I started to use Joomla 1.7. I found there is a lot of different aspects from Joomla 1.6. Some components are not working. All of templates I tried are not working in my Joomla 1.7 websites. Those templates are working fine in Joomla 1.5. I think Joomla group to consider deep on the backward compatibility. Thus, if you find a template, please make sure that is for Joomla 1.6+.