Posted By

tomcottrill on 12/05/11


Tagged

basic class


Versions (?)

A very basic Model Class


 / Published in: PHP
 

This is a sample class being used for demo purposes

  1. <?php
  2.  
  3. class User{
  4. protected $firstname;
  5. protected $lastname;
  6.  
  7.  
  8. public function __construct($data) {// We'll write this later
  9. }
  10. }
  11. ?>

Report this snippet  

You need to login to post a comment.