Welcome Guest, Not a member yet? Register   Sign In
What's the best way to structure code when calling multiple controllers into one page view?
#8

[eluser]Pygon[/eluser]
Honestly, I see no need for you to use a library.

Comment logic (not user logic or other logic as to whether to display it, etc) should be in your model anyway, allowing you to access the model from multiple controllers or views without duplication of code.

It's not to say that you CAN'T use a library -- you can do anything you want. It simply makes more sense for comment CRUD to be part of the model, not the controller.

Just a note: This question is best suited for the Code/Application Development section, since Ignited Code is typically where code solutions are posted/discussed and would recieve more attention if posted there.


Messages In This Thread
What's the best way to structure code when calling multiple controllers into one page view? - by El Forum - 03-12-2008, 12:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB