Added DB Access + Error page
This commit is contained in:
25
demos/phonebook/protected/models/Contact.php
Normal file
25
demos/phonebook/protected/models/Contact.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
class Contact extends CActiveRecord
|
||||
{
|
||||
/**
|
||||
* @var integer ID of this record
|
||||
* @soap
|
||||
*/
|
||||
public $id;
|
||||
/**
|
||||
* @var string name
|
||||
* @soap
|
||||
*/
|
||||
public $name;
|
||||
/**
|
||||
* @var string phone number
|
||||
* @soap
|
||||
*/
|
||||
public $phone;
|
||||
|
||||
public static function model($className=__CLASS__)
|
||||
{
|
||||
return parent::model($className);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user