Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fatal error: Class 'JParameter' not found in template/theme/index.php on line xxx

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

like image 757
Tushar Gohel Avatar asked Oct 07 '13 13:10

Tushar Gohel


1 Answers

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');
like image 187
Lodder Avatar answered Sep 28 '22 01:09

Lodder