Welcome Guest, Not a member yet? Register   Sign In
Gaps at top of code
#3

[eluser]Mobious[/eluser]
Hi Andrew,

All of the controllers that we have created are doing the same problem but I will post an overview of a controller

Code:
class test extends Controller
{
    function test()
    {
        parent::Controller();

        // load models, libs, helpers, etc
    }

    function index
    {
        // General processing

        $data = array('header' => 'test');

        $content = array('content' => 'Hello World');

        $this->parser->parse('header.tpl.htm', $data);
        $this->parser->parse('template.tpl.htm', $content);
        $this->load->('footer.tpl.htm');
    }
}

That is the jist of it (obviously with more code) but all of the above processing goes into the two arrays to be parsed.

Hope you you can help.


Messages In This Thread
Gaps at top of code - by El Forum - 12-22-2009, 05:12 AM
Gaps at top of code - by El Forum - 12-22-2009, 07:05 AM
Gaps at top of code - by El Forum - 12-22-2009, 07:18 AM
Gaps at top of code - by El Forum - 12-22-2009, 07:28 AM
Gaps at top of code - by El Forum - 12-22-2009, 07:47 AM
Gaps at top of code - by El Forum - 12-22-2009, 07:50 AM
Gaps at top of code - by El Forum - 12-22-2009, 07:57 AM
Gaps at top of code - by El Forum - 12-22-2009, 08:01 AM
Gaps at top of code - by El Forum - 12-22-2009, 08:18 AM
Gaps at top of code - by El Forum - 12-22-2009, 08:19 AM
Gaps at top of code - by El Forum - 12-22-2009, 08:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB