I am using codeigniter and trying to integrate Os-ticket into it. The reason for moving into codeigniter is for user login to work with Os-ticket log in.
Hence I created codeigniter library and was trying to load the 'view.php' from library.
class Lib_support
{
protected $ci;
/**
* __construct
*
* @return void
* @author
**/
public function __construct()
{
$this->ci =& get_instance();
$this->ci->load->library('session');
$this->ci->load->database();
$this->ci->load->helper('date');
$this->ci->load->helper('url');
$CI=& get_instance();
if (! isset($_SESSION)) {
session_start();
}
}
public function view()
{
require('support/view.php');
}
}
That's where I got this message.
I placed the osticket files inside ../application/libraries/support/ folder.
And was calling require('support/view.php');
Can anyone let me know what went wrong here or what steps(config values) that I need to take care while changing/moving files to codeingiter library folder.
From what I understood, is that the INCLUDE_DIR failed and hence the require files might have failed to load. The code is working perfectly if I placed outside codeigniter folder.