<?php
class Banner extends AppModel{
var $name='Banner';
var $useTable='banners';
	
	var $validate = array(
			'title' => array( 
            	'notempty' => array(
 				'rule' => array('between', 5, 50),
				'message' => 'Title must be between 5 and 20 characters long!'
 				)),
				'image' => array( 
            	'notempty' => array(
 				'rule' => 'notEmpty',
				'message' => 'Please Upload a Banner!'
 				))
				); 	

}
?>