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

[eluser]TheFuzzy0ne[/eluser]
[quote author="inparo" date="1209325014"]Hey Daz,

There are a few solutions here. What you don't want is to have them in their own controller. Controllers take in and process page requests, you should try not to nest them. If you need common functions everywhere, you can either extend a common controller, or create a library/helper.

It depends very much on the application. For larger projects it can be beneficial to have a common controller to initialize your various libraries.

For small projects, I would just nest the views.

Cheers,
Pascal[/quote]

Nice one. Thanks! I keep taking for granted the fact I can extend classes. This whole OOP thing is awesome. I used to work with Dragonfly CMS (based on PHP-Nuke). There are a few objects there, but nothing seems quite so organised. Also the documentation is about as sparse as the hair on my head!


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