Handling Model - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Handling Model (/showthread.php?tid=29835) |
Handling Model - El Forum - 04-22-2010 [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.... Handling Model - El Forum - 04-22-2010 [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. Handling Model - El Forum - 04-22-2010 [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 |