BaseUrl === NULL) { $appWebPath = preg_replace( '#' . $this->Application->Request->ApplicationUrl . '$#', '', $this->Application->Request->ApplicationFilePath ); $appBaseUrl = preg_replace( '#^' . $appWebPath . '#', '', dirname($this->Application->Request->ApplicationFilePath) ); $this->BaseUrl = $appBaseUrl . preg_replace( '#^' . Prado::getPathOfNamespace('Web') . '#', '', $this->BasePath ); } parent::init($config); } } ?>