[eluser]web-johnny[/eluser]
[quote author="tieungao" date="1303114833"]Let's say we have one example below :
function offices()
{
$user = $this->ion_auth->get_user()->username;
$this->grocery_crud->render();
}
How i can display var $user at your custom_cms template?
Thanks[/quote]
You can simply do
Code:
function offices()
{
$user = $this->ion_auth->get_user()->username;
$this->load->view('login_as',array('username' => $user));
$this->grocery_crud->render();
}
Or whatever view you like (before crud or after). And it will load in the $output as I say to the documentation. Its pretty simple.
I have also sections on the template. But I still don't want to make it more complicated for you. If though you really need to do it with sections , for example : section user , section menu , section footer etc. Just ask it for.