Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace ApplicationController;
- use ZendMvcControllerAbstractActionController;
- use ZendViewModelViewModel;
- use ZendViewModelJsonModel;
- class DocumentsController extends AbstractActionController {
- public function indexAction() {
- }
- public function getTreeDataAction() {
- $json = new JsonModel(array(
- 'title' => 'Some Title'
- ));
- return $json;
- }
- }
- ( ! ) Fatal error: Uncaught exception 'ZendViewExceptionRuntimeException' with message 'ZendViewRendererPhpRenderer::render: Unable to render template "application/documents/get-tree-data"; resolver could not resolve to a file' in ../vendor/ZF2/library/Zend/View/Renderer/PhpRenderer.php on line 451
- //module.config.php
- return array(
- 'view_manager' => array(
- 'strategies' => array(
- 'ViewJsonStrategy',
- ),
- ),
- )
Add Comment
Please, Sign In to add comment