there was no documentation on that, but now i know that it is better
to avoid such naming conflicts
anyway, if i ever publish a "cake Look-Out-list", this will definitly
be on it
i still do not know what xavier wanted to tell me :)
On 10 Nov., 14:27, "Xavier Mathews" <xavieruni...@gmail.com> wrote:
> I am still over looking the problem and then i will prepare a
> statement and tell you my point.
>
> On 11/10/2008, Mark (Germany) <dereurom...@googlemail.com> wrote:
>
>
>
>
>
> > @xavier:
> > what exactly is your point? :)
>
> > On 10 Nov., 12:12, "Mark (Germany)" <dereurom...@googlemail.com>
> > 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" <xavieruni...@gmail.com> 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 <dardoso...@gmail.com> 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)
> >> > > <dereurom...@googlemail.com> 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
> >> > xavieruni...@gmail.com¥xavieruni...@hotmail.com¥truestar...@yahoo.com
> >> > "Fear of a name, only increases fear of the thing itself."
>
> --
> Xavier A. Mathews
> Student/Developer/Web-Master
> GG Client Based Tech Support Specialist
> Hazel Crest Illinois
> xavieruni...@gmail.com¥xavieruni...@hotmail.com¥truestar...@yahoo.com
> "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 cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment