6

So, basically, I've developed an application that gets the data from the database, processes it and then displays it on a webpage and now I need to integrate it with joomla. I've read about MVC components and it looks like there are 2 MVC's available: new and legacy. Plus there is F0F. There are almost no manuals on how to work with new MVC and the last stable F0F version is like 6 months old so I am kinda afraid that it wont be compatible with the new joomla version. So how should I proceed? Should I follow the official manual on joomla docs and use a legacy MVC, try a new MVC or use F0F?

  • I'm not very savy with components, but due to lack of documentation, I'd suggest using F0F. I've also been told it's much more flexible and will make writing your component much easier. – Lodder Nov 23 '15 at 8:29
3

Legacy MVC will be supported until EOL of Joomla 3 (at least). I would just go ahead and use that. You will find many tutorials for legacy MVC and you will probably get the most help for that here or in the forums. Also (almost) all core components are developed with legacy MVC so you have many examples at hand.

The new MVC is already usable but you will have to implement a lot of functionality by yourself. I think it's easier to start with legacy but if you want an example how to use the new MVC you can look at the code of com_install because it already has been refactored.

FOF can probably help you to develop your extensions easier. I didn't get a chance to use it yet but imho I would learn the legacy MVC first.

0

You should never used legacy for new development as they are due to be phased out but left in to allow developers to adapt from legacy. FOF is akeebas framework on framework.

See: https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Developing_a_Basic_Component

  • That tutorial you gave me - I've read it already. And its for legacy MVC, the only referenece to a new MVC is literally 3 lines long. – Arter Cadelanne Nov 23 '15 at 6:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.