FOF2-001
FOFModel / FOFTable
FOF 2.x in core
Framework-on-Framework 2 shipped with some J3 stacks and is not in Joomla 4 core.
FOFModel / FOFTable → FOF 3 / native Joomla MVC
What you will see
- Class "FOFModel" not found
- Class "FOFTable" not found
Symptoms people search
Akeeba/FOF component 500 · FOFModel
Replace this code
Swap FOFModel / FOFTable for FOF 3 / native Joomla MVC.
Joomla 3
Remove or stop calling this
class LmsModelCourses extends FOFModel {}Joomla 4 / 6
Use this instead
Port to FOF 3 or to namespaced ListModel/AdminModel. FOF 2 is not in Joomla 4.How to fix it
- 1Upgrade the FOF library to a J4+ release or rewrite MVC.
Also known as
FOF · FOFModel · FOFTable · FOFForm
There is no 1:1 swap for this one. The architecture changed. If you cannot rewrite it, Infyways can.
Related issues
- Joomla 3 → 4Joomla API
Factory::getUri()
JFactory::getUri() → Uri::getInstance()
- Joomla 3 → 4Joomla API
Factory::getXml() / JXMLElement
JFactory::getXML() → SimpleXMLElement
- Joomla 3 → 4Joomla API
Factory::getEditor()
JFactory::getEditor() → Editor::getInstance()
- Joomla 5 → 6Database API
Factory::getDbo() / getDBO()
JFactory::getDbo() → $this->getDatabase() or Factory::getContainer()->get(DatabaseInterface::class)
- Joomla 5 → 6Joomla API
Factory::getUser()
JFactory::getUser() → $app->getIdentity() or UserFactoryInterface
- Joomla 5 → 6Joomla API
Factory::getSession()
JFactory::getSession() → $app->getSession()