Welcome Guest, Not a member yet? Register   Sign In
header and footer functions
#1

[eluser]TheFuzzy0ne[/eluser]
Hi guys. I just need a little advice.

I would like to package my header, nav bar and footer functions out of the called controller. I'm not entirely sure whether they should have their own controllers, or whether it should all be put into libraries.

Am I right in saying that all controllers are available to be called upon publicly? I seem to remember reading that the controller can't be called upon publicly if it's prefixed with an underscore, but maybe I am confusing it with the controller methods.

The reason I'd like to keep them separate, is because the data in all three will be dynamically generated.

I'm actually quite confused as to what to do. I know I can include views from inside views, but I can't decide whether or not have the header/nav bar sent automatically or to manually send it each request. After all, there may be a time when I may not want to send the header, such as when sending a download.

I know that's a lot of thoughts there, but it's important to me that I get it right first time, as I always seem to settle on a solution, only to find I need to find a new one when it doesn't support a feature I had not considered before.

Many thanks.

Daz.


Messages In This Thread
header and footer functions - by El Forum - 04-27-2008, 08:25 AM
header and footer functions - by El Forum - 04-27-2008, 08:36 AM
header and footer functions - by El Forum - 04-27-2008, 08:52 AM
header and footer functions - by El Forum - 04-27-2008, 08:54 AM
header and footer functions - by El Forum - 04-27-2008, 09:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB