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
require_once('ion_auth.php');
require_once('home/site_name/public_html/folder_name/application/libraries/ion_auth.php')
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
Post a Comment