1.

Explain Routing In Phalcon?

Answer»

The router component allows to define routes that are mapped to the controllers or handlers that should receive the request. A router parses a URI as per the information received.

Every router in the web application has two modes:

  • MVC MODE
  • Match-only mode

The first mode is IDEAL for working with MVC applications. Following is the SYNTAX to define a route in Phalcon.

$router = new Router();
// Define a route 

$router->add( 
"", 

"controller" => "", 
"ACTION" => "", 

);

The router component allows to define routes that are mapped to the controllers or handlers that should receive the request. A router parses a URI as per the information received.

Every router in the web application has two modes:

The first mode is ideal for working with MVC applications. Following is the syntax to define a route in Phalcon.

$router = new Router();
// Define a route 

$router->add( 
"", 

"controller" => "", 
"action" => "", 

);



Discussion

No Comment Found