Welcome Guest, Not a member yet? Register   Sign In
Best Strategy for Dynamic Header and Footer sections?
#13

[eluser]Thorpe Obazee[/eluser]
[quote author="Rey Philip Regis" date="1228289157"]
Quote:Right now, the dynamic information determines whether the person is logged in or not (checks a session variable) and changes the top menu based on that information.

For now, I just put the coding in the header file, I may need to do something different if there is more information I need to process with it.

Put your code in the header file. Then create a library, the library that you will create should be implementing a like a factory pattern. You will have a base class, then two child classes for logged in and logged out class. Then You place the base class in you header file, then pass the dynamic information in your base class, there it will determine whether the person is logged in or not and then instatiating the correct child class. Is it applicable or am I not getting the right scenario?

Good day.[/quote]

That's basically what I do.

Create a class. Then class does what I want it to do... where to output data, or check for anything... No add code will be added to your methods. Just load it via the 'view'.


Messages In This Thread
Best Strategy for Dynamic Header and Footer sections? - by El Forum - 12-02-2008, 11:41 AM
Best Strategy for Dynamic Header and Footer sections? - by El Forum - 12-02-2008, 12:05 PM
Best Strategy for Dynamic Header and Footer sections? - by El Forum - 12-02-2008, 02:14 PM
Best Strategy for Dynamic Header and Footer sections? - by El Forum - 12-02-2008, 04:35 PM
Best Strategy for Dynamic Header and Footer sections? - by El Forum - 12-02-2008, 04:46 PM
Best Strategy for Dynamic Header and Footer sections? - by El Forum - 12-02-2008, 05:30 PM
Best Strategy for Dynamic Header and Footer sections? - by El Forum - 12-02-2008, 05:37 PM
Best Strategy for Dynamic Header and Footer sections? - by El Forum - 12-02-2008, 06:40 PM
Best Strategy for Dynamic Header and Footer sections? - by El Forum - 12-02-2008, 06:50 PM
Best Strategy for Dynamic Header and Footer sections? - by El Forum - 12-02-2008, 06:52 PM
Best Strategy for Dynamic Header and Footer sections? - by El Forum - 12-02-2008, 07:25 PM
Best Strategy for Dynamic Header and Footer sections? - by El Forum - 12-02-2008, 07:25 PM
Best Strategy for Dynamic Header and Footer sections? - by El Forum - 12-02-2008, 08:03 PM
Best Strategy for Dynamic Header and Footer sections? - by El Forum - 12-02-2008, 08:07 PM
Best Strategy for Dynamic Header and Footer sections? - by El Forum - 01-03-2009, 10:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB