2011-05-25 129 views
1

調用show_error我不能設法從庫文件中調用show_error我得到笨從庫

警告:包括(應用/錯誤/ error_php.php)[]:未能打開流:E:\ project \ SOURCE \ system \ core \ Exceptions.php上沒有這樣的文件或目錄在線167

回答

3

也許你需要創建一個CI實例?

要訪問庫中的CodeIgniter原生資源,請使用get_instance()函數。這個函數返回CodeIgniter超級對象。

here

因此,也許像

$CI =& get_instance(); 
$CI->show_error('something is not right here . . . '); 

會做你想要什麼。