it work ok on localhost ,but on host it error :
Zend\View\Renderer\PhpRenderer::render: Unable to render template "Application\Index\test"; resolver could not resolve to a file
my controller:
namespace Application\Controller;
use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;
class IndexController extends AbstractActionController
{
public function indexAction()
{
$view=new ViewModel();
$view->setTemplate('Application\Index\test');
$view->setVariable('view_chat', 'undercut');
return $view;
}
public function testAction(){
}
}
view folder:
--/application
----/index
------/index.phtml
------/test.phtml