Re: New SecurityComponent & Blackhole

2007-05-28 Thread Ugo PARSI


>
> By reading the source code of the Form Helper, I was able to create a
> checkbox using :
> input('User.remember_me', array('label' =>
> __("FORM_REMEMBER_ME", true), 'type' => 'checkbox', 'checked' =>
> 'checked')) ?>
>
> It works, but now I get blackholed every time again :/
> Anything wrong ?

Hmmm, apparently I'm not the only one in that case...
https://trac.cakephp.org/ticket/2646


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: New SecurityComponent & Blackhole

2007-05-27 Thread Ugo PARSI

Ok, my bad then :)
But it still would have been clearly obvious with a simple deprecated
warning as usual

By reading the source code of the Form Helper, I was able to create a
checkbox using :
input('User.remember_me', array('label' =>
__("FORM_REMEMBER_ME", true), 'type' => 'checkbox', 'checked' =>
'checked')) ?>

It works, but now I get blackholed every time again :/
Anything wrong ?

Thanks,
Ugo PARSI


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: New SecurityComponent & Blackhole

2007-05-27 Thread Larry E. Masters aka PhpNut
> But I would never have discovered this on my own...
> I don't have a single message telling me that thing is deprecated
> (which is usually the case !)


https://trac.cakephp.org/wiki/changelog/1.2.x.x

Read the first line:
NOTICE ALL DEPRECATED METHODS ARE REMOVED FROM THE CORE AS OF [4981]
REVISION!

https://trac.cakephp.org/changeset/4981 << This one too


-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: New SecurityComponent & Blackhole

2007-05-27 Thread Ugo PARSI



On 27 mai, 16:21, "Larry E. Masters aka PhpNut" <[EMAIL PROTECTED]>
wrote:
> Find the related methods in the FormHelper, $form-> in your view. Right now
> you are using deprecated methods to build your forms using the HtmlHelper
> $html->
>
> --

Thanks ! It now works...

But I would never have discovered this on my own...
I don't have a single message telling me that thing is deprecated
(which is usually the case !)

BTW, if we must now use the FormHelper everywhere for the forms, how
can we use checkboxes ?
$form->checkbox doesn't exist, and I've found nothing close to it on
the 1.2 API / FormHelper.

Greetings,
Ugo PARSI


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: New SecurityComponent & Blackhole

2007-05-27 Thread jonern

Thats great Joshua =)
Please write a small working form example where the SecurityComponent
is used, ie:
$this->Security->requirePost('delete');

where $this->Security->blackHoleCallback also is included...

It just won't work for me...

Thanks!

On May 27, 7:28 pm, Joshua Benner <[EMAIL PROTECTED]> wrote:
> Using 1.2.0alpha5146 and not experiencing any problems with forms using
> FormsHelper.
>
> jonern wrote:
> > I use the form helper consistently and still end up blackholed every
> > time I submit a form.
> > Using cake_1.2.0.5146alpha.
>
> > All my forms where working fine in 1.1 with the htmlHelper, but when I
> > upgraded to 1.2 and started using the formHelper - the black hole gets
> > me every time...
> > Perhaps a bug somewhere...
>
> > Using Mariano Iglesias's method solved my problems temporarily though:
> >http://bakery.cakephp.org/articles/view/multiple-rules-of-validation-...
>
> > gwoo told me the new 1.2 is checking forms by default...


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: New SecurityComponent & Blackhole

2007-05-27 Thread Joshua Benner

Using 1.2.0alpha5146 and not experiencing any problems with forms using 
FormsHelper.

jonern wrote:
> I use the form helper consistently and still end up blackholed every
> time I submit a form.
> Using cake_1.2.0.5146alpha.
>
> All my forms where working fine in 1.1 with the htmlHelper, but when I
> upgraded to 1.2 and started using the formHelper - the black hole gets
> me every time...
> Perhaps a bug somewhere...
>
> Using Mariano Iglesias's method solved my problems temporarily though:
> http://bakery.cakephp.org/articles/view/multiple-rules-of-validation-per-field-in-cakephp-1-2
>
> gwoo told me the new 1.2 is checking forms by default...
>
>
> >
>   

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: New SecurityComponent & Blackhole

2007-05-27 Thread jonern

I use the form helper consistently and still end up blackholed every
time I submit a form.
Using cake_1.2.0.5146alpha.

All my forms where working fine in 1.1 with the htmlHelper, but when I
upgraded to 1.2 and started using the formHelper - the black hole gets
me every time...
Perhaps a bug somewhere...

Using Mariano Iglesias's method solved my problems temporarily though:
http://bakery.cakephp.org/articles/view/multiple-rules-of-validation-per-field-in-cakephp-1-2

gwoo told me the new 1.2 is checking forms by default...


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: New SecurityComponent & Blackhole

2007-05-27 Thread Larry E. Masters aka PhpNut
Find the related methods in the FormHelper, $form-> in your view. Right now
you are using deprecated methods to build your forms using the HtmlHelper
$html->


-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---