Welcome Guest, Not a member yet? Register   Sign In
Integrating Tank_Auth library into the template library - howto ?
#2

[eluser]Haskabab[/eluser]
Hey I use the same library and this is how I integrated Tank Auth:

I edited the auth controller and replaced all

Code:
$this->load->view('viewNameHere', $data);

with

Code:
$this->template->write('title', 'Auth > Login / whatever');
$this->template->write_view('viewNameHere', $data);
$this->template->render();

So you should add all the static template regions in the constructor, or add them above the template->render() method. That should work, i did that and everything is working fine!


Messages In This Thread
Integrating Tank_Auth library into the template library - howto ? - by El Forum - 05-13-2012, 07:13 PM



Theme © iAndrew 2016 - Forum software by © MyBB