First let me start off by saying that I think this component creator is a great tool. It has taken me some time to get comfortable (on some level) with customizing the resultant component. I have been using the fork system extensively and it is working very well for me. I am not always certain where to put my customizations so there is a lot of trial and error but the more I use the Cook component generator the easier it is getting and the more productive I am becoming.
Now to the main point of this post. I am using the Joolart T3 template which is a responsive framework built around Bootstrap. However, unless I put in a small hack into the administrator/helpers/mvc.php file, I get Fatal error: Cannot redeclare class JViewLegacy, since I think the T3 template has already declared it. So I simply put a conditional in the mvc.php file:
if (!class_exists('JViewLegacy', false)){
jimport('legacy.view.legacy');
}
I have tried to copy this hacked mvc.php file to the fork directory but it doesn't execute it so I find I just have to re-apply the hack every time I install an updated version of my component.
So my questions are:
1. Is this a change that can be built into the code generated by Cook? Maybe this is just an isolated case of wrong coding on the part of Joomart in which case that probably doesn't make sense and
2. If the answer to the first question is "no", then is there a way I can put this change into a fork file somewhere?
Thanks for your help!
Rick