Welcome Guest, Not a member yet? Register   Sign In
$this->db->insert creates 3 rows instead of 1. This bug depends from a name of a view (unbelievable but true)
#18

[eluser]PaulBY[/eluser]
The problem appears when I try to load one view inside the another.
If I load one view there're no problems.

Controller:
Code:
public function quote() {
$this->db->insert('captcha',array('captcha_id'=>'','captcha_time'=>'100500','ip_address'=>'192.168.1.1','word'=>'word'));
$this->load->view('site-request');
    }
View site-request.php:
Code:
<html><body>loreum ipsum

But if I change site-reguest.php to
Code:
<?php $this->load->view('site_before_footer'); ?>
, controllers generates 5 rows in the database instead of 1

site_before_footer.php is too


Messages In This Thread
$this->db->insert creates 3 rows instead of 1. This bug depends from a name of a view (unbelievable but true) - by El Forum - 05-08-2012, 06:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB