Welcome Guest, Not a member yet? Register   Sign In
want to use $this->template->render(); with __destruct
#1

[eluser]Unknown[/eluser]
Hi there, I was just wondering if anyone has the codeigniter template system setup so they assign all their views and content to the $template variable and render() on the __destruct of a controller?

Instead of $this->template->render(); in every controller function. I tried doing it on __destruct but it didn't seem to work for me. I haven't had a look at the $template code but was wondering if anyone has tried this?

thanks


Messages In This Thread
want to use $this->template->render(); with __destruct - by El Forum - 09-10-2009, 05:28 AM
want to use $this->template->render(); with __destruct - by El Forum - 09-10-2009, 05:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB