<?php 
class Photo extends AppModel{
	var $name='Photo';
	var $useTable='photos';
	
	var $validate = array(
    'name' => array(
        'rule' => array('maxLength', 30),  
        'message' => 'Maximum characters for exceeded!'
    ),
	'image_caption' => array(
        'rule' => array('maxLength', 30),  
        'message' => 'Maximum characters exceeded!'
    ),
	'information' => array(
        'rule' => array('maxLength', 150),  
        'message' => 'Maximum characters exceeded!'
    ),
	'cat_id' =>array('notempty' => array(
 				'rule' => 'notEmpty',
				'message' => 'Please Select a Category for which the product belongs to.'
 				))
);
	
}



?>