// Example: BFrontController::i() ->route('GET /feature', 'Vendor_Feature_Frontend_Controller.index') ->route('GET|POST /feature/.action', 'Vendor_Feature_Frontend_Controller') // Possibilities: // Parameter is optional if last. // Action methods other than GET should have suffix crud__POST, crud__PUT, crud__DELETE ->route('GET|POST|PUT|DELETE /model/:id', 'Rest_Controller_Model.crud') // Multiple parameters, specific method, no need for prefix ->route('POST /model/:id/child/:child_id', 'Rest_Controller_Model.child_post') // Required parameter, will not match without ->route('GET /article/!id', 'Article_Controller.view') // Wildcard, can include slashes // Multiple handles of the same route can be declared, // will be performed until not forwarded from within action ->route('GET /*category', 'FCom_Catalog_Frontend_Controller_Categories.view') ->route('GET /*product', 'FCom_Catalog_Frontend_Controller_Products.view') ->route('GET /*category/:product', 'FCom_Catalog_Frontend_Controller_Products.view') ->route('GET /*page', 'FCom_Cms_Frontend_Controller_Page.view') // Call any controller action, specified by parameter ->route('GET|POST /dealer/.action', 'Dealer_Frontend_Controller') // Regexp route match (starts with ^) ->route('^(GET|POST) /pattern-([^/]+)/?$', 'Some_Controller.action') ;