ERRO:
A 404 error occurred
Page not found.
The requested URL could not be matched by routing.
No Exception available
IndexController.php
<?php
namespace Estoque\Controller;
use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;
class IndexController extends AbstractActionController{
public function IndexAction(){
echo "Welcome to Zend";
exit();
}
}
module.config.php
<?php
return array(
'router'=> array(
'routes'=>array(
'application'=>array(
'type'=>'Literal',
'options'=>array(
'route'=>'/app',
'defaults'=>array(
'__NAMESPACE__'=>'Estoque\Controller',
'controller'=>'Index',
'action'=>'index',
)
)
)
)
),
'controllers'=>array(
'invokables'=>array(
'Estoque\Controller\Index'=>'Estoque\Controller\IndexController'
)
)
);