Thank you, Miles!

On Wed, Nov 17, 2010 at 8:04 PM, Miles J <[email protected]> wrote:
> I usually do:
>
> $this->autoLayout = $this->autoRender = false;
>
> On Nov 17, 1:57 am, psybear83 <[email protected]> wrote:
>> Hi all
>>
>> That's my automatically generated controller test:
>>
>> <?php
>> /* Comments Test cases generated on: 2010-11-17 10:11:59 :
>> 1289987639*/
>> App::import('Controller', 'Comments');
>>
>> class TestCommentsController extends CommentsController {
>>         var $autoRender = false;
>>
>>         function redirect($url, $status = null, $exit = true) {
>>                 $this->redirectUrl = $url;
>>         }
>>
>> }
>>
>> class CommentsControllerTestCase extends CakeTestCase {
>>         var $fixtures = array('app.comment', 'app.user', 'app.group',
>> 'app.active_user');
>>
>>         function startTest() {
>>                 $this->Comments =& new TestCommentsController();
>>                 $this->Comments->constructClasses();
>>         }
>>
>>         function endTest() {
>>                 unset($this->Comments);
>>                 ClassRegistry::flush();
>>         }
>>
>> }
>>
>> When running it, I'm getting errors from the default layout view:
>>
>> Notice (8): Undefined variable: users [APP/views/layouts/default.ctp,
>> line 41]
>>
>> etc.
>>
>> I tried to set
>>
>> var $layout = false;
>>
>> but this didn't work, too. What's wrong here?
>>
>> Thanks
>> Josh
>
> 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
>

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