Skip to content

Instantly share code, notes, and snippets.

@doonot
Created Jul 25, 2016
Embed
What would you like to do?
Uploadable
$this->addBehavior('Utils.Uploadable', [
'avatar' => [
'path' => '{ROOT}{DS}{WEBROOT}{DS}files{DS}{model}{DS}avatar{DS}{field}{DS}',
'fields' => [
'fileName' => 'avatar'
]
]
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment