Hi everyone, I create new project using phalconPhp and I'de like to do the first test by creating indexcontroller with one method indexAction : public function indexAction() { echo "<h1>Hello!</h1>"; }
when I run my project with localhost/MyProject/ , I can't see my echo. for the routing I have file called router.php which contains :
$di->set('router', function () {
$router = new Router();
$router->add("/:controller", array(
'controller' => 1,
'action' => 'index'
));
$router->add("/:controller/:action", array(
'controller' => 1,
'action' => 2
));
$router->add("/:controller/:action/:params", array(
'controller' => 1,
'action' => 2,
'params' => 3
));
return $router;
});
any suggestion ?!