MVC-NEW-J3-001
Joomla\CMS\MVC (J3 experimental)
Experimental Joomla 3 “new MVC” namespace
Joomla 3 shipped an experimental MVC that Joomla 4 deleted. If you followed those J3 sample classes, they are gone.
Joomla\CMS\MVC (J3 experimental) → Original MVC: HtmlView, ListModel, BaseController
What you will see
- Class ... not found in experimental MVC
Symptoms people search
J3 new MVC tutorial code 500
Replace this code
Swap Joomla\CMS\MVC (J3 experimental) for Original MVC: HtmlView, ListModel, BaseController.
Joomla 3
Remove or stop calling this
use Joomla\CMS\MVC\View\HtmlView as Experimental;Joomla 4 / 6
Use this instead
Use the Joomla 4 MVC that came from the old legacy MVC, not the J3 experimental split. HtmlView / ListModel / FormController.How to fix it
- 1Port to the current namespaced MVC from JModelLegacy/JViewLegacy lineage.
Also known as
experimental MVC · Joomla 3 new MVC
There is no 1:1 swap for this one. The architecture changed. If you cannot rewrite it, Infyways can.
Related issues
- Joomla 3 → 4SQL / schema
MyISAM engine in install SQL
ENGINE=MyISAM → ENGINE=InnoDB
- Joomla 3 → 4PHP
mysql_* PHP functions
mysql_query() → Joomla DatabaseInterface / mysqli / PDO
- Joomla 3 → 4MVC
getError() / setError() on models and tables
$model->setError() → Exceptions
- Joomla 5 → 6MVC
Table::getInstance()
JTable::getInstance('Content') → MVC / Table factory
- Joomla 3 → 4Joomla API
JMenuItem public $params
$item->params->get('show_title') → getParams() / setParams()
- Joomla 3 → 4Joomla API
Media field #joomlaImage:// paths
images/lms/hero.jpg (raw path) → HTMLHelper::cleanImageURL() / MediaHelper::getCleanMediaFieldValue()