2009年9月28日星期一

Re: [fw-mvc] unit test and set layout

Perhaps it is because I do not use config.ini
All settings are set in the index.php (as in earlier versions of ZF)

2009/9/28 Алексей Шеин <confik@gmail.com>:
>
>
> 2009/9/28 Yuri Timofeev <tim4dev@gmail.com>
>>
>> I do not understand. All the tests I run and operate normally.
>> However, if the controller have "setLayout ( 'other (non default)
>> layout')" then you have the bug.
>>
>
> I also do have non-default layout and my tests work correctly.
> Maybe you should delete layout option when starting mvc:
>>
>> Zend_Layout::startMvc(array(
>>    'layoutPath' => $appRoot . '/application/layouts/' .
>> $config_layout->path,
>>    'layout' => 'main' // this one
>> ));
>
>

--
with best regards

没有评论: