Demonic Posted December 1, 2008 Share Posted December 1, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/134944-m-in-mvc/ Share on other sites More sharing options...
Liquid Fire Posted December 3, 2008 Share Posted December 3, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/134944-m-in-mvc/#findComment-704848 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.