Can we disable the view rendering for a zend appllication. But still load layout.html. I am building an angularjs+zend application.I have added my angularjs scripts in the layout.phtml but whenever i load a page it say 404 because i have not defined a html view for the route. To resolve this i have to define all route functions in the controllers. But i dont need this because i have my view in the front end/angularjs
Asked
Active
Viewed 84 times
0
-
1Check out [this answer](https://stackoverflow.com/a/12578869/7935051)! – unclexo Nov 05 '17 at 09:31
-
Why your controller trying to send html view If you have a js frontend? i think you have to return jsonmodel not viewmodel. – Mehmet SÖĞÜNMEZ Nov 06 '17 at 21:26
1 Answers
0
You must have a <?= $this->content ?>
row in your layout.phtml file. This is where the page view should take place.
If you delete this, it won't show anything.

LWjuniOr
- 151
- 3
- 14