Re: Question on the method input of Form helper relative to type 'date'

2009-09-29 Thread byqsri
Sorry I have mistaked :-) I would get: . . On 18 Set, 12:05, WebbedIT wrote: > now I've stared at them for 5 mins and I am certain they are > identical :P > > On Sep 17, 8:17 am, byqsri wrote: > > > I get > > > . > > . > > > > Instead of: > > > . > > .

Re: Question on the method input of Form helper relative to type 'date'

2009-09-18 Thread WebbedIT
now I've stared at them for 5 mins and I am certain they are identical :P On Sep 17, 8:17 am, byqsri wrote: > I get > > . > . > > Instead of: > > . > . > > > > You should get: > > > . > > . > > > > --~--~-~--~~~---~--~~

Re: Question on the method input of Form helper relative to type 'date'

2009-09-17 Thread byqsri
I get . . Instead of: . . > You should get: > > . > . > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@go

Re: Question on the method input of Form helper relative to type 'date'

2009-09-16 Thread WebbedIT
New one on me ... guess that's egg on my face for presuming cake would not change things dependant on POST or GET being used. I personally don't use GET so should have kept my mouth shut :) Thanks for the detailed explanation. --~--~-~--~~~---~--~~ You received th

Re: Question on the method input of Form helper relative to type 'date'

2009-09-15 Thread Kevin Wentworth
@WebbedIT: Thanks for the response. I do have it in the $form->create (). I believe this is a bug. Cakephp will only use the field name in a form where type=>get. The code in the form helper __name() function has special logic for method="get" forms. This logic severely limits the complexity o

Re: Question on the method input of Form helper relative to type 'date'

2009-09-15 Thread WebbedIT
@Kevin: Where were you entering 'type'=>'get'? It should go into the $form->create() call and will not cause the form helper to alter the way in which it automagically names fields. Paste your view and resulting HTML output and I will explain what's happening. --~--~-~--~~---

Re: Question on the method input of Form helper relative to type 'date'

2009-09-14 Thread Kevin Wentworth
I just ran into the same issue. In my case, I wanted the form to use method="get" (or type=>get). This causes cakephp (1.2.5) to use the wrong string for the name. The id attribute is correctly named, but not the name attribute. Is this a bug? Not sure if this is your issue or not, but I did a

Re: Question on the method input of Form helper relative to type 'date'

2009-09-14 Thread WebbedIT
Try: $form->input(StartDate, array('type'=>'date', 'id'=>'StartDate')); You should get: . . --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-p

Re: Question on the method input of Form helper relative to type 'date'

2009-09-14 Thread byqsri
I get also the model name . Is it possible to obtain: . . Instead of: . . On 14 Set, 09:38, WebbedIT wrote: > Sure: > > $form->input(StartDate, array('type'=>'date')); --~--~-~--~~~---~--~~ You received this message because you ar

Re: Question on the method input of Form helper relative to type 'date'

2009-09-14 Thread WebbedIT
Sure: $form->input(StartDate, array('type'=>'date')); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, se

Re: Question on the method input of Form helper relative to type 'date'

2009-09-13 Thread byqsri
Please Can you me make an example ? On 12 Set, 09:52, WebbedIT wrote: > Should work without the ModelName if you supply 'type'=>'date' --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this

Re: Question on the method input of Form helper relative to type 'date'

2009-09-12 Thread WebbedIT
Should work without the ModelName if you supply 'type'=>'date' --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this g

Re: Question on the method input of Form helper relative to type 'date'

2009-09-11 Thread byqsri
Ok ... all is right ... But this 'start_date' field isn't a model's field but a date to do a search. I can use it like a Model.start_date but conceptually this is wrong. On 11 Set, 11:04, WebbedIT wrote: > When you move away from the conventions and things go wrong, it's so > much harder to debu

Re: Question on the method input of Form helper relative to type 'date'

2009-09-11 Thread WebbedIT
When you move away from the conventions and things go wrong, it's so much harder to debug. What does e($form->input ('ModelName.start_date'); produce? It should produce . . I reckon the problem lies somewhere in the fact your resultant code does not have a ModelName and your fie

Question on the method input of Form helper relative to type 'date'

2009-09-10 Thread marco.rizze...@gmail.com
Hi I use Form helper like this: e($form->input( 'startDate' , array( 'id' => 'starDate', 'name' => 'data[starDate]', 'label' => 'Start date:' , 'type' => 'date', 'dateFormat' => 'DMY', '