Welcome Guest, Not a member yet? Register   Sign In
How can I load index() without memory leak?
#1

[eluser]cleansugar[/eluser]
hello.php:

funtion Hello()
{}

function index()
{}

function submit()
{
$name = $this->input->post('formname');
$this->hello_model->insertData($name);
Hello::index();
}

I want to load index page after loading submit() page.
But Hello::index() requires memory at each time it loads recursively.
How can I load index() without memory usage?

I've used redirect(). but it returns error like "duplicated index load".

Please help me.


Messages In This Thread
How can I load index() without memory leak? - by El Forum - 07-23-2009, 10:08 AM
How can I load index() without memory leak? - by El Forum - 07-23-2009, 09:01 PM
How can I load index() without memory leak? - by El Forum - 07-23-2009, 10:16 PM
How can I load index() without memory leak? - by El Forum - 07-23-2009, 10:21 PM
How can I load index() without memory leak? - by El Forum - 07-23-2009, 10:25 PM
How can I load index() without memory leak? - by El Forum - 07-24-2009, 07:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB