Welcome Guest, Not a member yet? Register   Sign In
code duplication advice
#1

[eluser]winter[/eluser]
Hi everyone,

I hope you're having a great day.

I have probably a simple question for you all. I'm not PHP or CI veteran. So I thought I'd ask what you have done in this case.

There are many times when I'd like to use the same data and not have to do so. For example, I have a footer that shows the app version and release date. That data is pulled from the db. Now I could call the model function and set the array that is sent each time I load the footer view. However, it would be nicer to just maybe have it set once per controller. Or even just every time I load the footer.

OK now take a moment to laugh. Then if your feeling like you could spare a few moments, I would appreciate any suggestions to the above and similar things that I would/will/do encounter making apps with CI/PHP.

Thanks all! Take it easy!


Messages In This Thread
code duplication advice - by El Forum - 03-24-2009, 08:39 PM
code duplication advice - by El Forum - 03-24-2009, 08:53 PM
code duplication advice - by El Forum - 03-24-2009, 09:24 PM
code duplication advice - by El Forum - 03-26-2009, 03:07 AM
code duplication advice - by El Forum - 03-26-2009, 05:11 AM
code duplication advice - by El Forum - 03-26-2009, 12:26 PM
code duplication advice - by El Forum - 03-26-2009, 06:37 PM
code duplication advice - by El Forum - 09-30-2009, 02:31 PM
code duplication advice - by El Forum - 09-30-2009, 02:44 PM
code duplication advice - by El Forum - 09-30-2009, 02:49 PM
code duplication advice - by El Forum - 09-30-2009, 02:59 PM
code duplication advice - by El Forum - 09-30-2009, 03:34 PM
code duplication advice - by El Forum - 01-10-2010, 06:25 PM



Theme © iAndrew 2016 - Forum software by © MyBB