public function __construct() { #get the controler $url_parameter[1] = str_replace('-', '', $this->getParameter(1)); self::$controler = $url_parameter[1] == '' ? 'hotsite' : $url_parameter[1]; #get the action $url_parameter[2] = str_replace('-', '', $this->getParameter(2)); self::$action = $url_parameter[2] == '' ? 'start' : $url_parameter[2]; }