Welcome Guest, Not a member yet? Register   Sign In
partial views

currently the views are being loaded from the controller like shown below

$data = array(
            'user' => $this->users_model->get($id),
            'current_user' => $this->current_user

        $data['content'] = $this->parser->parse($this->admin_folder . '/users/_show', $data, TRUE);
        $this->parser->parse($this->admin_folder . '/layouts/default', $data);

the layout/default has a call to the header and footer in-turn.

how do I write a partial view for the above code.


Theme © iAndrew 2016 - Forum software by © MyBB