i upgrade template 2.5 to 3.0, template upgrade but come the following error.
Fatal error: Class 'JParameter' not found in template/theme/index.php on line xxx
JParameter
was removed in Joomla 3.0 and now either JForm
or in most cases JRegistry
should be used.
So use the following code, and change to suit your own needs
$jparams = new JRegistry();
$variable = $jparams->get('param_name');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With