Jump to content

M in MVC


Demonic

Recommended Posts

I'm work on a small forum and trying something new with the MVC, I got the basics down for the Controller and Views, I'm just having a hard time thinking of a way to create the model class. http://code.google.com/p/cforums/ Been reading all day, once I get a basic idea of how I'll have the model class setup I can move on the error handling.

 

Thinking about taking a CodeIgniter Approach to Models http://codeigniter.com/user_guide/general/models.html

Link to comment
Share on other sites

Well one thing is that there code is based on php 4 when it comes to the contructor as they use the objects name instead of __construct() php 4 is really really old and php is no longer updating it so i would not go that way.

 

Also, in codeigniter, at least as far as i can tell, there base model class provide basrely any functionality, like functionality to save, load data, queries for multiple records all of which can be abstract so that is is the same for all models.  If you don't want to(or can't) build something like that i would suggestion integrating a ORM system.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.