Login   Register  
PHP Classes
elePHPant
Icontem

File: Model/welcome.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Aziz S. Hussain  >  Aziz MVC  >  Model/welcome.php  >  Download  
File: Model/welcome.php
Role: Class source
Content type: text/plain
Description: Sample Model
Class: Aziz MVC
Framework that uses MVC design pattern
Author: By
Last change: Fixed Minor Bugs
Date: 2010-11-16 09:12
Size: 756 bytes
 

Contents

Class file image Download
<?php
if(!defined('BASEPATH')){ die();}

/*

AzizMVC By Aziz S. Hussain
http://www.AzizSaleh.com
Licensed under LGPL

File Name: welcome.php

Description:
-----------
This is an example of how you would create a model.

--> the classname must be the same as loaded or in the following variations:
    controllermodel, controller_model (case insensitive)
    or any other c l a s s (MVC will search for the c l a ss name)

*/

class welcomemodel extends model
{
    
// Construct function
    
public function __construct()
    {
        
// Initialize parent
        
parent::__construct();        
    }
    
    
// Test function
    
public function test()
    {
        echo 
"Test, Connection Link: ".$this->getLink()."<br />";
    }
}

// End of file /AzizMVC/Model/welcome.php