Attachment

Binds files to model instances. Based on the attachment class.

Configuration

key_from:

Calculated from the primary key.

attachment_config:
 

Array for attachment configuration. dir key is optional, calculated from model and relation names.

See also

Attachment class.

Examples

In this case, each item of the model have 2 attachments: avatar and cv.

<?php
protected static $_attachment = array(
    'avatar' => array(),
    'cv' => array(),
);
Read the Docs v: elche
Versions
latest
stable
elche
dubrovka
chiba.2
chiba.1
Downloads
pdf
htmlzip
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.