u need to use *var $helpers = array("list", "of", "helpers");* in helper
class which helpers will helper use :D

i think this is problem...
--
Tilen Majerle
http://majerle.eu



2010/11/26 piousbox <[email protected]>

> I get this while testing. Here's my test code:
>
> function testLogin_register() {
>            $actual = $this->Text->login_register();
>        }
>
> and the helper code that's being tested:
>
> function login_register($user = false) {
> // ...
>        $out = '';
>            $out .= $this->Form->create('User', array('url' =>
> array('controller' => 'users', 'action' => 'login')));
>            $out .= $this->Form->input('User.username', array('label'
> => false));
>            $out .= $this->Form->input('User.password', array('label'
> => false));
>            $out .= $this->Form->end('Login');
> // ...
>        return $out;
>    }
>
> So basically that I use $this->Form inside my helper results in an
> error (but using $this->Html doesn't). Does anyone have an idea why
> so?
>
> \V
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> 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]<cake-php%[email protected]>For
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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