Welcome Guest, Not a member yet? Register   Sign In
form_validation doesn't show errors
#5

(02-13-2015, 09:33 PM)RobertSF Wrote:
(02-13-2015, 06:49 PM)Narf Wrote: echo TRUE; will echo nothing. Smile

Ha, ha, ha, true! But...

PHP Code:
$x $this->form_validation->run();
echo 
$x

What won't echo anything either ... echo prints strings and CI_Form_validation::run() returns a boolean. Any time you cast a boolean to string (in this case, there's an implicit cast), it will become an empty string.

var_dump() should help. Smile
Reply


Messages In This Thread
form_validation doesn't show errors - by vertisan - 02-13-2015, 07:02 AM
RE: form_validation doesn't show errors - by Narf - 02-13-2015, 06:49 PM
RE: form_validation doesn't show errors - by Narf - 02-14-2015, 12:05 PM
RE: form_validation doesn't show errors - by Narf - 02-14-2015, 10:10 PM



Theme © iAndrew 2016 - Forum software by © MyBB