MISP/app/Model/News.php

27 lines
427 B
PHP

<?php
App::uses('AppModel', 'Model');
class News extends AppModel {
public $actsAs = array('Containable');
public $validate = array(
'message' => array(
'valueNotEmpty' => array(
'rule' => array('valueNotEmpty'),
),
),
'title' => array(
'valueNotEmpty' => array(
'rule' => array('valueNotEmpty'),
),
)
);
public $belongsTo = array(
'User' => array(
'className' => 'User',
)
);
}