Welcome Guest, Not a member yet? Register   Sign In
forms in my model?
#1

[eluser]ixxalnxxi[/eluser]
Hello All,

In the site I'm developing there is a comment feature. The comment feature will be used over again for different things such as media, articles, blogs, news, etc. I decided to make only one table for comments and then set table and field_id columns so that comments could be inserted for content in different tables.

Now to the question, I am going to be displaying a form for submitting comments and I would rather not rewrite the code for every time I need it (the benefits of OOP, right?). My plan was to put the form display function in my comments model because anytime the model is loaded it would be necessary to have the form too. Is this a bad idea? I fear I might be blurring views and models.


Messages In This Thread
forms in my model? - by El Forum - 01-02-2009, 09:56 PM
forms in my model? - by El Forum - 01-02-2009, 10:14 PM
forms in my model? - by El Forum - 01-02-2009, 10:19 PM
forms in my model? - by El Forum - 01-02-2009, 10:45 PM



Theme © iAndrew 2016 - Forum software by © MyBB