Welcome Guest, Not a member yet? Register   Sign In
passing parameter bug?
#1

[eluser]sukuiter[/eluser]
Hi, I just testing code igniter today. I found something weird.

In controller I got a value from variable then I pass it to the view.
Code:
if ($this->form_validation->run() == FALSE)
{
   echo "controller:".$this->input->post('level_up');
   $this->pass['level'] = $this->input->post('level_up');
   $this->load->view('form', $this->pass);
}


In the view I simply just echo the variable.
Code:
<?php echo "view:" . $level;?>

It's working for normal values, but what's not working is 0(zero). 00 is working.
The zero is printed in controller but not in view.

Is this a bug?
I'm using code igniter 2.0


Messages In This Thread
passing parameter bug? - by El Forum - 03-10-2011, 04:20 AM
passing parameter bug? - by El Forum - 03-10-2011, 07:32 AM
passing parameter bug? - by El Forum - 03-10-2011, 10:47 PM



Theme © iAndrew 2016 - Forum software by © MyBB