06.27
php
saved
jmikola
Note
Inheriting model
Inheriting model
- <?php
- class Contact extends AppModel {
- var $name = 'Contact';
- 'className' => 'Client',
- 'foreignKey' => 'client_id'
- )
- );
- 'className' => 'Greensheet',
- 'foreignKey' => 'client_id',
- 'dependent' => true
- )
- );
- 'message' => 'Contact name already exists for this client',
- 'required' => true
- ),
- 'message' => 'Contact name must be between 1 and 255 characters long',
- 'required' => true
- )
- ),
- 'rule' => 'email',
- 'message' => MSG_INVALID_EMAIL,
- 'allowEmpty' => true,
- 'required' => true
- ),
- 'message' => MSG_INVALID_PHONE,
- 'allowEmpty' => true,
- 'required' => true
- ),
- 'message' => MSG_INVALID_FAX,
- 'allowEmpty' => true,
- 'required' => true
- )
- );
- }
- ?>
Parsed in 0.145 seconds, using GeSHi 1.0.7.14