06.01
php
saved
dardosordi
Note
model using upload behaviour
model using upload behaviour
- <?php
- class Foto extends AppModel {
- var $name = 'Foto';
- 'galeria_id' => VALID_NOT_EMPTY
- );
- 'dir' => 'img/fotos',
- 'overwrite_existing' => true, 'create_directory' => true)
- )
- );
- //The Associations below have been created with all possible keys, those that are not needed can be removed
- 'foreignKey' => 'galeria_id',
- 'conditions' => '',
- 'fields' => '',
- 'order' => '',
- 'counterCache' => ''),
- );
- }
- ?>
Parsed in 0.068 seconds, using GeSHi 1.0.7.14