Welcome Guest, Not a member yet? Register   Sign In
Handling Model
#1

[eluser]napz[/eluser]
Question guys,

my question is how to handle model?

1. Should I make a model for each table ?
2. Create model for each pages ?
3. make a model foreach function ?
4. make Models foreach modules ?


what do you think the best way to handle a model?

it seems like a stupid question? but it keeps me wondering.... hehehhehe....
#2

[eluser]Thorpe Obazee[/eluser]
Create a model when it makes sense to you.

1. A model for a table just because there is a table doesn't make sense since having Models don't necessarily mean you are working with a database.

2. Does it make sense to create a model for each page?

3. Function?

4. This is how I work, but not necessarily, one model per module. If it makes sense to me to separate methods into a new model, I'd do it.
#3

[eluser]napz[/eluser]
Now that make sense... hey PDP .... I've sent a PM to you... about your website.... the mercurial link has a problem




Theme © iAndrew 2016 - Forum software by © MyBB