Welcome Guest, Not a member yet? Register   Sign In
CI_ENVIRONMENT = development not working
#2

(This post was last modified: 01-29-2024, 05:55 AM by captain-sensible. Edit Reason: extra extra )

have you got in .env

Code:
logger.threshold = 9

what i do to make sure for specific elements in a controller (whilst in development) is something like :

Code:
try
{


}
    catch ( \Exception  $e)
                             {
                                        
                             $data = [
                                        'title'  => 'info',
                                      
                                   'info'=>'somwething went wrong with new blog' ,
                                   'infoException'=>'the problem is :'.$e->getMessage(),
                                   'date'=>$this->myDate,
                                     ];
                            
                                echo view('info2', $data);
                                 die();
                        
                                }


in a view called info2.php i have


Code:
    <?php echo $infoException;?>

So in the controller the exception is got and passed and rendered out to a view
CMS CI4 A CMS system, runs out of the box written on top of CI4
Arch Book  CodeIgniter4 on Apache(pages 92-114) 
Reply


Messages In This Thread
RE: CI_ENVIRONMENT = development not working - by captain-sensible - 01-29-2024, 05:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB