Here's another interesting kick in the Matt Groening.

Inability to use FormHelper::error() to show our own errors on the
fly, i.e. $form->error('Arse.biscuits', 'A pair of women's knickers is
missing'); regardless of whether I'm using a model to create a form or
not.

Workaround:

$form->validationErrors['Arse']['biscuits'] = 'Dancing like a mad
eejit is not an allowed action';
echo $form->error('Arse.biscuits');

But why?? Form error should be looking for an validation error message
only if I didn't provide one as a param. Am I the only one who finds
that logical?

On May 18, 2:27 pm, Henrique Machado <[email protected]> wrote:
> What about create a true poll for it?
>
> First create a poll for all suggestions, after create a poll to vote on that
> suggestions and voilá =)
>
> Henrique Machado
>
> 2009/5/18 Aivaras <[email protected]>
>
> > Hey,
>
> > actually the most annoying thing is that we cannot download separate parts
> > of Cake. It would be cool if advanced users could choose what do they need
> > for their project, just like mootools made in their download page. I
> > certainly understand that this is just *wishful thinking* because Cake's
> > core uses nearly everything :x
>
> > Anyway, upload component would be totally usable!
>
> > Also, switching from scriptaculous + prototype to jQuery would be awesome.
> > People would create and share plugins, which means that our lovely community
> > would become even bigger and ADmad would be even more mad (sorry AD :x)
>
> > Enjoy,
> > Faifas
>
> > On Sat, May 16, 2009 at 06:00, Brendon Kozlowski 
> > <[email protected]>wrote:
>
> >> Thought of another one.
>
> >> Paginate settings, and paginate call.  Why do they have the same
> >> name?  When learning how Cake works, although it's proper OOP to do
> >> so, it's a bit confusing to see:
>
> >> $this->paginate = array('contain' => 'User');
> >> $this->set('posts', $this->paginate());
>
> >> I think it would be clearer (from a "name the variable what it is"
> >> type of coding style) to use something like:
> >> $this->paginateOptions = array('contain' => 'User');
>
> >> Every time I see $this->paginate when skimming through code, I
> >> immediately see the method, completely forgetting it's also a
> >> property.  I "hate" that.  ;)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to