Global configuration parameter

karinep

New Member
Hi everyone!

I want to get a user parameter in a template_css.php to do a conditional and I tried to use:
Code:
$usersConfig = JComponentHelper::getParams('com_fabrik');
$paramPitt  = $usersConfig->get('autocomplete_max_rows');
But I receive this error:
Code:
<br />
<b>Warning</b>:  The use statement with non-compound name 'JComponentHelper' has no effect in <b>C:\xampp7217\htdocs\pitt\components\com_fabrik\views\list\tmpl\bootstrap\template_css.php</b> on line <b>11</b><br />
<br />
<b>Fatal error</b>:  Uncaught Error: Class 'JComponentHelper' not found in C:\xampp7217\htdocs\pitt\components\com_fabrik\views\list\tmpl\bootstrap\template_css.php:17
Stack trace:
#0 {main}
  thrown in <b>C:\xampp7217\htdocs\pitt\components\com_fabrik\views\list\tmpl\bootstrap\template_css.php</b> on line <b>17</b><br />

Are there another way to include the JComponentHelper class to get this parameter? or use another native PHP function to get autocomplete_max_rows that are locate in Global Configuration > Fabrik > Javascript ?
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top