private function typePathInfo()
    {
        $request = Request::createFromGlobals();
        $pathInfo = $request->getPathInfo();
        // Set Controller and Action
        $urlArray = explode('/', $pathInfo);
        $controllerName = 'index';
        if (!empty($urlArray[1])) {
            $controllerName = $urlArray[1];
        }
        $controllerName = ucfirst(strtolower($controllerName));
        $actionName = 'index';
        if (!empty($urlArray[2])) {
            $actionName = $urlArray[2];
        }
        // Parameter
        $urlList = array(0, 1, 2);
        foreach ($urlArray as $key => $value) {
            if (!in_array($key, $urlList)) {
                if ($key % 2 == 0) {
                    $_GET[$urlArray[$key - 1]] = empty($value) ? '' : $value;
                }
            }
        }
        $route = $controllerName . '.' . $actionName;
        return $this->render($route);
    }
private function typePathInfo()
    {
        $request = Request::createFromGlobals();
        $pathInfo = $request->getPathInfo();
        // Set Controller and Action
        $urlArray = explode('/', $pathInfo);
        $controllerName = 'index';
        if (!empty($urlArray[1])) {
            $controllerName = $urlArray[1];
        }
        $controllerName = ucfirst(strtolower($controllerName));
        $actionName = 'index';
        if (!empty($urlArray[2])) {
            $actionName = $urlArray[2];
        }
        // Parameter
        $urlList = array(0, 1, 2);
        foreach ($urlArray as $key => $value) {
            if (!in_array($key, $urlList)) {
                if ($key % 2 == 0) {
                    $_GET[$urlArray[$key - 1]] = empty($value) ? '' : $value;
                }
            }
        }
        $route = $controllerName . '.' . $actionName;
        return $this->render($route);
    }
private function typePathInfo ( ) { $ request = Request :: createFromGlobals ( ) ; $ pathInfo = $ request -> getPathInfo ( ) ; // Set Controller and Action $ urlArray = explode ( '/' , $ pathInfo ) ; $ controllerName = 'index' ; if ( ! empty ( $ urlArray [ 1 ] ) ) { $ controllerName = $ urlArray [ 1 ] ; } $ controllerName = ucfirst ( strtolower ( $ controllerName ) ) ; $ actionName = 'index' ; if ( ! empty ( $ urlArray [ 2 ] ) ) { $ actionName = $ urlArray [ 2 ] ; } // Parameter $ urlList = array ( 0 , 1 , 2 ) ; foreach ( $ urlArray as $ key => $ value ) { if ( ! in_array ( $ key , $ urlList ) ) { if ( $ key % 2 == 0 ) { $ _GET [ $ urlArray [ $ key - 1 ] ] = empty ( $ value ) ? '' : $ value ; } } } $ route = $ controllerName . '.' . $ actionName ; return $ this -> render ( $ route ) ; }
Type Path Info
@return bool
Type Path Info