Is there a way to override com_templates? I want to make some changes to com_templates/views/style/view.html.php
I try hard with this but it didn't work ( http://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core )Thanks--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
To post to this group, send an email to joomla-de...@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-general?hl=en-GB.
For more options, visit https://groups.google.com/groups/opt_out.
Is there a way to override com_templates? I want to make some changes to com_templates/views/style/view.html.php
I try hard with this but it didn't work ( http://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core )
Thanks--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
To post to this group, send an email to joomla-de...@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-general?hl=en-GB.
For more options, visit https://groups.google.com/groups/opt_out.
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2013.0.3336 / Virus Database: 3162/6331 - Release Date: 05/17/13
You cannot override the View class, you can only override the view template files (inside the tmpl directory of each view). The view class is designed to pass all the necessary data to the view template file.
That said, there's a neat trick. The view template files are actually included by the view class. This means that you can use $this in those files and you're talking directly to your View class. Maybe that's all you need in your case.