if(!function_exists('audit')){ 函数addAudit($ id_user,$ description) {
$response_audit = $CI->Audit_model->addAudit($id_user,$description);
if($response_audit){
log_message('debug',' Product --addAudit :: Response received from model');
}else{
log_message('debug',' Product --addAudit :: Response didnot received from model');
}
}
}
答案 0 :(得分:2)
if( !function_exists('audit') ) {
function addAudit($id_user,$description) {
$CI = &get_instance();
$CI->load->model ( 'Audit_model' );
$response_audit = $CI->Audit_model->addAudit($id_user,$description);
if($response_audit){
log_message('debug',' Product --addAudit :: Response received from model');
}else{
log_message('debug',' Product --addAudit :: Response didnot received from model');
}
}
答案 1 :(得分:0)
在普通助手的构造函数中:
ul > li