Guest User

Untitled

a guest
Jan 19th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. <?php
  2. namespace ApplicationController;
  3.  
  4. use ZendMvcControllerAbstractActionController;
  5. use ZendViewModelViewModel;
  6. use ZendViewModelJsonModel;
  7.  
  8. class DocumentsController extends AbstractActionController {
  9.  
  10. public function indexAction() {
  11.  
  12. }
  13.  
  14. public function getTreeDataAction() {
  15. $json = new JsonModel(array(
  16. 'title' => 'Some Title'
  17. ));
  18. return $json;
  19. }
  20.  
  21. }
  22.  
  23. ( ! ) 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
  24.  
  25. //module.config.php
  26. return array(
  27. 'view_manager' => array(
  28. 'strategies' => array(
  29. 'ViewJsonStrategy',
  30. ),
  31. ),
  32. )
Add Comment
Please, Sign In to add comment