src/Controller.php
public function param($key = NULL, $default = NULL)
	{
		$params = $this->app->router->getCurrentRoute()->getParams();

		return (array_key_exists($key, $params))
			? $params[$key]
			: $default;
	}
public function param($key = NULL, $default = NULL)
	{
		$params = $this->app->router->getCurrentRoute()->getParams();

		return (array_key_exists($key, $params))
			? $params[$key]
			: $default;
	}
public function param ( $ key = NULL , $ default = NULL ) { $ params = $ this -> app -> router -> getCurrentRoute ( ) -> getParams ( ) ; return ( array_key_exists ( $ key , $ params ) ) ? $ params [ $ key ] : $ default ; }
Gets route params

@param 	string 	$key
@param 	string 	$default
@return 	string
Gets route params