I started learning about routing in Phalcon.
my directory structure is :
app
--- config
------ services.php
------ config.ini
------ loader.php
looks like INVO
and I try to add :
use Phalcon\Mvc\Router;
$router = new Router();
$router->add(
"admin/:controller/:action/:params",
array(
"controller" => 1,
"action" => 2,
"params" => 3
)
);
but, when I try to access : https://localhost/phalcon/admin/crud/index
it give me :
AdminController handler class cannot be loaded
this page was same like https://localhost/phalcon/crud/index