Hello again :)
Is there simple way to produce links in multimodule application with 2 or more modules?
I mean: I want to make simple links with the function \Phalcon\Tag::linkTo(array("auth/login", "Login")). And then, if this function was executed in some controller of the "Admin" module, it produces the link: "http://site.com/admin/auth/login". So this link routes to the "Auth" controller of the Admin module... ```php Now I need to use: $router->add('/admin/:controller/:action/:params', array( 'module' => "backend", 'controller' => 1, 'action' => 2, 'params' => 3 )); ``` And in every link of the "Admin" module I need to write \Phalcon\Tag::linkTo(array("admin/auth/login", "Login"))... but it still not work ^)
Dear Phalcon, maybe you have guidlines how to organize the multimodule application with the front-end and the back-end (without describing each route in \Phalcon\Mvc\Router() and with sharing model's structure for both modules)?