if you do
$this->set('component', $this->Component); you should be able to
access the component functions via $component-> in your views.
I think.
On Apr 16, 2:05 pm, miuuzn <[EMAIL PROTECTED]> wrote:
> 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/yyyy(screen, user friendly format)
> yyyy-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 [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
-~----------~----~----~----~------~----~------~--~---