public add (mixed $pattern, [mixed $paths], [mixed $httpMethods], [mixed $position])
Adds a route to the router without any HTTP constraint
use Phalcon\Mvc\Router; $router->add('/about', 'About::index'); $router->add('/about', 'About::index', ['GET', 'POST']); $router->add('/about', 'About::index', ['GET', 'POST'], Router::POSITION_FIRST);
Please login to continue.