i update the template from 2.5 to 3.0, update the template, but the following error appears.
Fatal error: class "JParameter" was not found in template / theme / index.php in line xxx
JParameter was removed in Joomla 3.0, and now you need to use JForm or in most cases JRegistry .
JParameter
JForm
JRegistry
Therefore, use the following code and modify it to suit your needs.
$jparams = new JRegistry(); $variable = $jparams->get('param_name');
Source: https://habr.com/ru/post/955406/More articles:How to restore postgres database to another database name - postgresqlCycle optimization with code duplication - c ++The corresponding template is strict, but declarations for the context of the element: scan component not found, - springInstall pytest for multiple modules - pythonC Macro - no error was declared in this area - cLock operator - does it always lock the lock? - multithreadingUnable to load spring 3 schemas - springThe 'module' object does not have the 'GeoSQLCompiler' attribute - pythonggplot2: display time series by month and week - rNo ads found for item context: scan component '- springAll Articles