codeigniter model class logging code example Example: display errors in codeigniter ini_set('display_errors', 1); inside config/database.php