@xavier:
what exactly is your point? :)
On 10 Nov., 12:12, "Mark (Germany)" <[EMAIL PROTECTED]>
wrote:
> well, i sure could have renamed it if i had known that it is a problem
> a) to name a field like the model
> b) to name it like a reserved word
>
> thx so far
>
> On 10 Nov., 02:11, "Xavier Mathews" <[EMAIL PROTECTED]> wrote:
>
> > What they said lol. If you find your self bugging with the date dont
> > use it without debugging.
>
> > On 11/09/2008, Dardo Sordi Bogado <[EMAIL PROTECTED]> wrote:
>
> > > Avoid naming a field the same as the model and this will not happen ;)
>
> > > On Sun, Nov 9, 2008 at 8:03 PM, Mark (Germany)
> > > <[EMAIL PROTECTED]> wrote:
>
> > >> As the pr() output shows, the processed form data on POST
> > >> returns a devided array with the normal "Date" and a second "date"
> > >> resulting in 2 warnings (Undefined variable: month/year) + the form
> > >> process recognized as invalide.
>
> > >> Array
> > >> (
> > >> [Date] => Array
> > >> (
> > >> [user_id] => 1
> > >> [date_type_id] => 1
> > >> [date] => Array
> > >> (
> > >> [day] => 09
> > >> )
>
> > >> [details] =>
> > >> )
>
> > >> [date] => Array
> > >> (
> > >> [date] => Array
> > >> (
> > >> [month] => 11
> > >> [year] => 2008
> > >> )
>
> > >> )
>
> > >> )
>
> > >> The Form was baked by the console
>
> > >> <?php echo $form->create('Date');?>
> > >> <fieldset>
> > >> <legend><?php __('Add Date');?></legend>
> > >> <?php
> > >> echo $form->input('user_id');
> > >> echo $form->input('date_type_id');
> > >> echo $form->input('date');
> > >> echo $form->input('details');
> > >> ?>
> > >> </fieldset>
> > >> <?php echo $form->end('Submit');?>
>
> > >> I cant find the problem - the database field is of the normal "date"
> > >> type
>
> > >> Wow..
> > >> After changing it to the following, it worked...
>
> > >> <?php
> > >> echo $form->input('Date.user_id');
> > >> echo $form->input('Date.date_type_id');
> > >> echo $form->input('Date.date');
> > >> echo $form->input('Date.details');
> > >> ?>
>
> > >> So why is this neccessary if there is only that one model Date?
>
> > --
> > Xavier A. Mathews
> > Student/Developer/Web-Master
> > GG Client Based Tech Support Specialist
> > Hazel Crest Illinois
> > [EMAIL PROTECTED]@[EMAIL PROTECTED]
> > "Fear of a name, only increases fear of the thing itself."
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---