On Nov 7, 7:10 pm, grigri <[EMAIL PROTECTED]> wrote:
> If you look at the code in the behavior, you'll see that the messages
> are generated in the setupUploadValidations() method, which is called
> at the end of the setup() method.
>
> So basically, after you've changed the settings, call
> setupUploadValidations() again manually and they should be updated,
> something like this:
>
> $b =& $this->Post->Attachment->behaviors['ImageUpload'];
> $b->settings['Attachment'] = am(
>   $b->settings['Attachment'],
>   array(
>     'allowedSize' => '1',
>     'allowedSizeUnits' => 'KB'
>   )
> );
> $b->setupUploadValidations($this->Post->Attachment);

     Thanks for your kind and quick reply. But, I'm not sure if it's a
"hack" or official standard usage. Thanks again.

--
  <?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com    Blog: http://rajeshanbiah.blogspot.com/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to