src/Routing/Route.php
/**
	 * Gets the value of a parameter. If the parameter is not found or null, first checks defaults, and then returns
	 * value of $default.
	 *
	 * @param string $key
	 * @param mixed $default
	 * @return mixed
	 */
Gets the value of a parameter. If the parameter is not found or null, first checks defaults, and then returns
value of $default.

@param string $key
@param mixed $default
@return mixed
Gets the value of a parameter . If the parameter is not found or null first checks defaults and then returns value of $default . @param string $key @param mixed $default @return mixed
public function parameter($key, $default = null) {
		if (is_null($this->parameters)) {
			return array();
		}
		if (!isset($this->parameters[$key])) {
			if (!isset($this->defaults[$key])) {
				return $default;
			}
			return $this->defaults[$key];
		}
		return $this->parameters[$key];
	}
public function parameter ( $ key , $ default = null ) { if ( is_null ( $ this -> parameters ) ) { return array ( ) ; } if ( ! isset ( $ this -> parameters [ $ key ] ) ) { if ( ! isset ( $ this -> defaults [ $ key ] ) ) { return $ default ; } return $ this -> defaults [ $ key ] ; } return $ this -> parameters [ $ key ] ; }
Gets the value of a parameter.
Gets the value of a parameter .