2009年9月28日星期一

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



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
));

 

没有评论: