[eluser]eilrahc[/eluser]
Despite being something of a web app noob, I'm making very good progress with my first CI app and have to thank the forum members, CI devs, and the writers of the excellent User Guide for that.
Since the video tutorial doesn't talk about the model part of a CI app, I haven't gotten around to impelmenting it in my application until tonight. I moved a few database-related functions out of the controller and into a new model class. My questions relate to the members of the class. In the Models page of the User Guide, their mock-up of a model shows:
Code:
var $title = '';
var $content = '';
var $date = '';
These are table columns, obviously. My questions are:
1) What exactly is accomplished by declaring these columns? The example code in the User Guide doesn't use these variables and there's no explanation as to why they are there. I commented out the column declarations in my Model class and observed no ill effect.
2) "var" is a PHP4 keyword. I prefer to write PHP5. Would I declare these as "private" for PHP5?
Thanks much!