Welcome Guest, Not a member yet? Register   Sign In
Advice please on best way to set Global Information
#5

[eluser]jedd[/eluser]
[quote author="Opel" date="1236615539"]
At the moment I have function running at the top of my template that explodes the URL and then makes the necessary lookup. I wasn't sure if it was better to use hooks to run the function or if there is a parent class in CI that runs prior to other controllers?[/quote]

You mean like this:
[url="http://ellislab.com/forums/viewthread/107767/"]http://ellislab.com/forums/viewthread/107767/[/url]

But you probably don't want to call views from within the parent controller class. I'm generating menu data there, f.e, but still calling from within my default view-php files.


Messages In This Thread
Advice please on best way to set Global Information - by El Forum - 03-05-2009, 10:45 AM
Advice please on best way to set Global Information - by El Forum - 03-08-2009, 09:20 PM
Advice please on best way to set Global Information - by El Forum - 03-09-2009, 04:41 AM
Advice please on best way to set Global Information - by El Forum - 03-09-2009, 05:18 AM
Advice please on best way to set Global Information - by El Forum - 03-09-2009, 05:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB