can i use a component under a helper?

2008-04-16 Thread miuuzn

Hi, i've been trying to make some reusable stuff to deal with dates

i've developed a component for my edit action that formats
dd/mm/(screen, user friendly format)
-mm-dd(mysql format)

so i'd like to use this under a view too(with a helper).
i could just copy the code, i know
but i wanna know if i can integrate both so i can really reuse the
code

thanks.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



how can i create forms on the fly using ajax without requiring a div container to be previously created?

2008-03-28 Thread miuuzn

i've been looking for a way to make a variable number of forms and
manage them(add or remove) on the client using 2 buttons

i found the way to update  div, but it does not fit my requirement...
as if i update the whole div i would have to recreate all the forms.
And i can't have a div for each form on the view, because its
variable.

is there a way to just add a DIV or FORM without reloading the others?
and also removing divs or forms...

thanks!

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



is it possible to insert a variable number of records using the same view?

2008-03-28 Thread miuuzn

i know the topic isn't quite explanatory
so... here's the deal:

i need to store a client data and he can have many addresses a
variable number...
so i have a table called clients and another called addresses

i wanna know if its possible with ajax + cakephp to make like subforms
that can be created on the fly
at page load it should have only one address form by default
then if the user clicks on a button(link or whatever) it should popup
another subform under it
and then its possible to pass this variable number of records to the
controller?

thanks in advice.

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---