php - how to require_once in codeigniter -


i trying extend library in codeigniter. way seems include original library using require_once load extended library using $this->load->library()

right have tried

  1. require_once('ion_auth.php');
  2. require_once('home/site_name/public_html/folder_name/application/libraries/ion_auth.php')
  3. require_once('/home/site_name/public_html/folder_name/application/libraries/ion_auth.php')

but unfortunately not luck..... keep getting error

message: require_once(...) [function.require-once]: failed open stream: no such file or directory 

weird thing though works on local xampp environment not on actual server.

use codeigniter's built in constant, apppath

require_once(apppath.'libraries/ion_auth.php');


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -