I want to create application with structure:
\app\controllers\
\app\controllers\security
\app\controllers\products
\app\models\
\app\models\security
\app\models\products
\app\views\
\app\views\security
\app\views\products
Just for keep clean the root directory
not a modules project, just a folder organized project.
from this post https://forum.phalcon.io/discussion/237/controllers-in-subfolders
i get
$router->add(
"/security/:controller/:action",
array( "controller" => 1, "action" => 2, "namespace" => "Application\SECURITY\\")
);
$router->add(
"/products/:controller/:action",
array( "controller" => 1, "action" => 2, "namespace" => "Application\PRODUCTS\\")
);
how to make with models and views sub-folders?
Thanks in advance