Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

66 lines (62 sloc) 1.177 kb
<?php
/**
* Message
*
* PHP version 5
*
* @category Model
* @package Croogo
* @version 1.0
* @author Fahad Ibnay Heylaal <contact@fahad19.com>
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
* @link http://www.croogo.org
*/
class Message extends AppModel {
/**
* Model name
*
* @var string
* @access public
*/
public $name = 'Message';
/**
* Validation
*
* @var array
* @access public
*/
public $validate = array(
'name' => array(
'rule' => 'notEmpty',
'message' => 'This field cannot be left blank.',
),
'email' => array(
'rule' => 'email',
'message' => 'Please provide a valid email address.',
),
'title' => array(
'rule' => 'notEmpty',
'message' => 'This field cannot be left blank.',
),
'body' => array(
'rule' => 'notEmpty',
'message' => 'This field cannot be left blank.',
),
);
/**
* Model associations: belongsTo
*
* @var array
* @access public
*/
public $belongsTo = array(
'Contact' => array(
'className' => 'Contact',
'foreignKey' => 'contact_id',
'conditions' => '',
'fields' => '',
'order' => '',
'counterCache' => true,
),
);
}
Jump to Line
Something went wrong with that request. Please try again.