El 31/05/2007, a las 14:48, dardosordi escribió:

> save http://bin.cakephp.org/saved/17539 as app/models/behaviors/
> upload.php

Hi, I've tried a similar approach to write an upload behavior (my  
first behavior, yes, another newBaker) based on this example but it  
fails when adding new models, because model->data array contains  
nothing before save and the setup method tries to access it.

By the way, I'm not sure about the placement of upload files as a  
behavior. I see it on the controller layer, but not so sure :-(.

I would like to find some documentation about the inners of writing  
behaviors, not only api or sample code (useful, but a bit difficult  
for a starter). Some sort of empty template... Any ideas?

--
Fran Iglesias
[EMAIL PROTECTED]




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to