[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