Skip to content

Set params function

Andre Sieverding edited this page Jun 12, 2014 · 2 revisions

(EasyRouter >= 0.4.0)

EasyRouter\main::set_basedir( string $parameters )

$parameters = Names of parameters in the URI.

Little example:

<?php
	EasyRouter\main::set_params(array('page', 'subpage'));
	EasyRouter\main::launch();
	
	/**
	 * instead of:
	 *
	 * $parameters = array('page', 'subpage');
	 * EasyRouter\main::launch(null, $parameters);
	 */
?>

Clone this wiki locally