Search code examples
joomlatwitter-bootstrapjoomla2.5upgradejoomla-extensions

joomla 3 vs 2.5 extension development differences


I am joomla user and I have created some extensions's and templates for joomla 2.5, but now I upgraded to joomla 3 because of bootstrap framework and responsive templates. I need your help here:

How to update joomla 2.5 extension to work with joomla 3 and be responsive?

I googled for a wile and couldn't find any answer about "extensions".


Solution

  • It's a big question, but here are some baseline steps.

    First, make sure that your 2.5 code is clean. That is if you are still using any classes that were deprecated in 2.5 first go ahead and update them in your 2.5 version or else do that first in your 3 version. If you aren't logging deprecated classes you should do so to make sure you don't miss any. In particular you want to get rid of JRequest and look for any methods you might have extended that themselves extended JObject and make sure you are not relying on those methods. Also, you need to make sure you have changed any extends JModel to extends JModelLegacy (and similar for JView and JController). Depending on the complexity of your outputs you can likely follow the core code as a model for your administrator layouts. For the front endin my experience you are mainly just changing layout files to use the newer classes and ids.