require KOHANA::find_file('vendor', 'tcpdf/tcpdf');
ก็สามารถนำ class อื่นมาใช้งานได้แล้ว
แต่คราวนี้พี่ Zend แกไม่ยอม เราก็ต้องหาวิธีแก้กันต่อไป ก็ให้เราแก้เป็นแบบนี้ครับ
$path = Kohana::find_file('vendor', 'Zend/Loader');
ini_set('include_path', ini_get('include_path').PATH_SEPARATOR.dirname(dirname($path)));
require_once 'Zend/Loader.php';
0 comments:
แสดงความคิดเห็น