public function urlFor($path, $type_name = 'asset', array $params = array())
    {
        switch ($type_name) {
            case 'asset':
                return $this->container->getRequest()->getRootUri() . $path;
                break;
            case 'route':
                $routeUrl = $this->container->getRequest()->getRootUri($this->getSetting('debug')) . $this->container->getRoute($path)->getPatternUri();
                return (!empty($params)) ? $routeUrl . '?' . http_build_query($params) : $routeUrl;
                break;
        }
    }