Back to RouterInterface class

Method parse

public array
parse
(mixed &$segments)
Parse method for URLs This method is meant to transform the human readable URL back into query parameters. It is only executed when SEF mode is switched on.
Parameters
  • array & $segments The segments of the URL to parse.
Returns
  • array The URL attributes to be used by the application.
Since
  • 3.3

Method parse - Source code

/**
 * Parse method for URLs
 * This method is meant to transform the human readable URL back into
 * query parameters. It is only executed when SEF mode is switched on.
 *
 * @param   array  &$segments  The segments of the URL to parse.
 *
 * @return  array  The URL attributes to be used by the application.
 *
 * @since   3.3
 */
public function parse(&$segments);