Welcome Guest, Not a member yet? Register   Sign In
Codeigniter not showing helpful error messgaes
#2

(This post was last modified: 10-09-2020, 06:46 AM by captain-sensible.)

ok well somewhere you are using:
Code:
htmlspecialchars($input,ENT_QUOTES ,'UTF-8',True);

so as you can see in the example above the first parameter passed has to be a string. Funny enough i've just been
playing with along with esc();

So say you have a form with a text input called 'title' and you get the text typed into that text box in a controller
using :

Code:
$title = $this->request->getVar('title');

well you might want to process it and change  a double quotation to " then its along the lines of:

Code:
htmlspecialchars($title,ENT_QUOTES );

Now for max info open up Logger.php located app/Config and set to 9

Make sure in .env :

CI_ENVIRONMENT = development





or if your not using that but in index.php in public
$_SERVER['CI_ENVIRONMENT'] = 'development';

Do you have the tool bar showing bottom of web page ?

image shows what error i get , tells me line 20 where i put an integer of 1

Attached Files Thumbnail(s)
   
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: Codeigniter not showing helpful error messgaes - by captain-sensible - 10-09-2020, 06:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB