[eluser]Unknown[/eluser]
Using CI ,I write code like this:
Code:
function index()
{
$this->load->Model('missionmod');
$banner = $this->missionmod->status();
if($banner['status']==0)
{
$this->_startmission(); // this function change $banner['status'] to 1 echo 1;
}
else
{
$this->_missionloop(); // echo 2;
}
}
when I visit this page a second time in few seconds,supposing to get the "2" by function _missionloop(), it sends the same "1" by function _startmission() like the first time.
why it happens and what can I do to this?
"$this->output->cache()" is not been used .
I'm a Chinese and apologize for my poor English.