Is there a way to disable a visualization wizard inside the controller / action?

I have my view helpers in the layout like:

$this->viewSearchForm();

that is ok, in all the pages is show it, but what if a have two or tree page where i don’t want to show that view helper? is this possible?

something like in an action:

$this->view->disable('viewSearchForm');

You could pass a flag to your view from your controller (init method or specific action).

In your layout you can have something like

if (!isset($this->disableSearchForm)) {
    echo $this->view->viewSearchForm();
}

and from your controller send the following

$this->view->disableSearchForm = true;
Hello, buddy!责编内容来自:Hello, buddy! (源链) | 更多关于

阅读提示:酷辣虫无法对本内容的真实性提供任何保证,请自行验证并承担相关的风险与后果!
本站遵循[CC BY-NC-SA 4.0]。如您有版权、意见投诉等问题,请通过eMail联系我们处理。
酷辣虫 » 综合编程 » Is there a way to disable a visualization wizard inside the controller / action?

喜欢 (0)or分享给?

专业 x 专注 x 聚合 x 分享 CC BY-NC-SA 4.0

使用声明 | 英豪名录