this application works very well .
i compared source codes but i can not found problem.
i use php engine.
my Module class
`
<?php
namespace Frontend;
use Phalcon\Loader,
Phalcon\Mvc\Dispatcher,
Phalcon\Mvc\View,
Phalcon\Mvc\ModuleDefinitionInterface;
class Module implements ModuleDefinitionInterface
{
/**
* Register a specific autoloader for the module
*/
public function registerAutoloaders()
{
$loader = new Loader();
$loader->registerNamespaces(
array(
'Frontend\Controllers' => realpath(__DIR__.'/controllers'),
'Frontend\Models' => realpath(__DIR__.'/models'),
)
);
$loader->register();
}
/**
* Register specific services for the module
*/
public function registerServices($di)
{
//Registering a dispatcher
$di->set('dispatcher', function() {
$dispatcher = new Dispatcher();
$dispatcher->setDefaultNamespace("Frontend\Controllers");
return $dispatcher;
});
//Registering the view component
$di->set('view', function() {
$view = new View();
$view->registerEngines(array(
".phtml" => "Phalcon\Mvc\View\Engine\Php",
));
$view->setViewsDir(realpath(__DIR__.'/views/'));
$view->setLayoutsDir('/layouts/');
$view->setMainView('index');
return $view;
});
}
}
`
is it true settings?
i dont understand what is the problem Because controller is executed and displays strings with 'echo' in action method but does not auto render.
tank you for guidance.