php - Call to member function getClientRegistrationMode on a non object osticket -


i using codeigniter , trying integrate os-ticket it. reason moving codeigniter user login work os-ticket log in.

hence created codeigniter library , trying load 'view.php' 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 got message.

i placed osticket files inside ../application/libraries/support/ folder. , calling require('support/view.php');

can let me know went wrong here or steps(config values) need take care while changing/moving files codeingiter library folder.

from understood, include_dir failed , hence require files might have failed load. code working if placed outside codeigniter folder.

you requiring file form ../application/libraries/support/ folder, think should use apppath constant provided ci.

require(apppath.'libraries/support/view.php'); 

Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -