Thank you for your quick reply, i have updated HelloController.php to

<code>

<?php

namespace WdevBase\Controller;

use Zend\Mvc\Controller\ActionController, 
    Zend\View\Model\ViewModel;
    

class HelloController extends ActionController
{
    
    public function indexAction()
    {
        return array();
    }
    
    
    public function worldAction()
    {
        $message = $this->getRequest()->query()->get('message', 'foo');
        return new ViewModel(array('message' => $message));
    }
}

</code>



and now I get this error message.

<code>( ! ) Fatal error: Uncaught exception
'Zend\View\Exception\RuntimeException' with message
'Zend\View\Renderer\PhpRenderer::render: Unable to render template
"hello/world"; resolver could not resolve to a file' in
C:\sites\site\vendor\ZendFramework\library\Zend\View\Renderer\PhpRenderer.php
on line 464

( ! ) Zend\View\Exception\RuntimeException:
Zend\View\Renderer\PhpRenderer::render: Unable to render template
"hello/world"; resolver could not resolve to a file in
C:\sites\site\vendor\ZendFramework\library\Zend\View\Renderer\PhpRenderer.php
on line 464
</code>

Any ideas?

--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/ZF2-Skeleton-Module-and-hello-world-tp4575541p4576050.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to