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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to