I want to use some ajax, but I don't know how to use function as the same as setNoRender() in zend framework 2 to disable for render view.
How to disable rendering view in zend framework 2?
这个问题网上的答案都是抄来抄去的。下面的答案才是正解好吗。。网上的答案可能都是抄1.0版本的。
15
17
|
I want to use some ajax, but I don't know how to use function as the same as setNoRender() in zend framework 2 to disable for render view. How to disable rendering view in zend framework 2? | ||||||||
|
53
|
"return false" disables the view and not the layout! why? because the accepted types are:
so "false" disable the view.
| ||||||||||||||||
|
16
|
If you're using JSON, then look at the view's Alternatively, you can return an
| ||||||||
|
9
|
Proper and simple solution to do this
Details: http://cmyker.blogspot.com/2012/11/zend-framework-2-ajax-return-json.html | ||||
|
3
|
I found some answer. Though within a controller
within a view PHTML file
| |||
0
|
$view = new ViewModel(); $view->setTerminate(true); | ||||
|
0
|
|