Closed coyatsi closed 6 years ago
The <prefix>
is supposed to be replaced with your thumbnail prefix. So if you configure your thumbnail with small
in the behaviour configuration, then that will be /small_
.
If you look in your /webroot/files
folders, you should be able to see the files with their prefixed names.
What is $data
? That's the entity you pass to your form, so in your case $organiser
.
Thank you!
I am still new on matters cakePHP. I have managed to successfully upload files but I cannot display them. From the manual:
$this->Html->image('../files/<table>/<field>/' . $data->get('image_dir') . '/<prefix>_' . $data->get('image'));
Am I supposed to replace the table and field with the actual names? What is $data? See my code below (baked), kindly point out any issues.Controller
view.ctp