1. snehakolte
  2. Support
  3. Wednesday, December 24 2014, 06:02 AM
I am trying to access the JsnUser object from the chronoconnectivity component (from where it allows to write PHP code)

<?php
$user=new JsnUser();
?>

I am getting error

Fatal error: Class 'JsnUser' not found in /components/com_chronoconnectivity/libraries/chronoconnection.php(1347) : eval()'d code on line 2

The code at that line is eval('?>'.$this->connection_details->where_sql);

Looks like it is trying to do 'eval' on JsnUser object, is it supposed to work ? It works with $user=JFactory::getUser();
Accepted Answer
admin Accepted Answer
Admin
Hi,
to use JsnUser class you must to add this code before:
require_once(JPATH_SITE.'/components/com_jsn/helpers/helper.php');
  1. more than a month ago
  2. Support
  3. # Permalink


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.