2009年11月17日 星期二

[Codeigniter] 筆記


// 引用ci 
$CI =& get_instance();
$template = $CI->load->view($template, $data, TRUE);

// 在 function 內 撈出 config
$config =& get_config();

// 在 function 內載入libraries
$LOG =& load_class('Log');

// log 錯誤訊息,  帶入error , debug , Informational
log_message('error' , '錯誤訊息' );
要顯示訊息 需要去 config.

【下列文章您可能也有興趣】

沒有留言: