Welcome Guest, Not a member yet? Register   Sign In
Library or helper?
#3

[eluser]Rick Jolly[/eluser]
Being a fan of modularity, I'd use a helper or library and call it from the view. That way, you can include the menu in any view without syncing with the controller. Ideally, you'd cache the menu to avoid all the queries on every request. You'd have to use a third party cache library for that.


Messages In This Thread
Library or helper? - by El Forum - 07-16-2008, 08:38 AM
Library or helper? - by El Forum - 07-16-2008, 09:58 AM
Library or helper? - by El Forum - 07-16-2008, 11:50 AM
Library or helper? - by El Forum - 07-16-2008, 02:09 PM



Theme © iAndrew 2016 - Forum software by © MyBB