I'm using the phpThumb helper to try and automatically generate
thumbnail images of the input
http://bakery.cakephp.org/articles/view/phpthumb-helper-2
In my views/posts/add.ctp I have this line:
echo $form->input('picture');
I basically would like the system to grab the URL to the ('picture')
field in the database, and create a thumbnail of the specified size.
This is my attempt at an afterFilter() in my PostsController:
function afterFilter() {
$this->Thumbnail->render =
array(['Post']['picture'],
'path'=>'pictures',
'width'=>100,
'height'=>150,
'quality'=>80,
'extension'=>'png'
);
}
.. Which clearly isn't working right. I'm pretty sure it's because
I've made a few (many?) mistakes when writing my afterFilter().
Can anyone help me out?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---