Friday, June 21, 2013

Re: Call function in form before save

From what i can suggest from short desc..
Declare function In table model and call in beforesave() in model

On 20-Jun-2013 9:39 PM, "Renato Bigliazzi" <rebigliazzi@gmail.com> wrote:
I have a form with some field. However there is a field that needs to be used as argument to a function to return a result before being saved in the database. Following issues:

1) Where to declare the function that returned the result to be saved in the database?
2) How to call this function?

Thanks

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments: