public function getHomeUri()
    {
        $homeUri = '';
        if ($this->isSingle()) {
            $controller = 'index';
            $action = 'index';
            $home = $this->getHome();
            if (isset($home['controller']) && isset($home['action']) && $home['controller'] && $home['action']) {
                $controller = $home['controller'];
                $action = $home['action'];
            }
            if ($this->isPrettyUrl()) {
                $homeUri = $this->createRelativeUrl("/{$controller}/action/{$action}");
            } else {
                $homeUri = $this->createRelativeUrl('/index.php', [$controller, 'action' => $action]);
            }
        }
        return $homeUri;
    }
public function getHomeUri()
    {
        $homeUri = '';
        if ($this->isSingle()) {
            $controller = 'index';
            $action = 'index';
            $home = $this->getHome();
            if (isset($home['controller']) && isset($home['action']) && $home['controller'] && $home['action']) {
                $controller = $home['controller'];
                $action = $home['action'];
            }
            if ($this->isPrettyUrl()) {
                $homeUri = $this->createRelativeUrl("/{$controller}/action/{$action}");
            } else {
                $homeUri = $this->createRelativeUrl('/index.php', [$controller, 'action' => $action]);
            }
        }
        return $homeUri;
    }
public function getHomeUri ( ) { $ homeUri = '' ; if ( $ this -> isSingle ( ) ) { $ controller = 'index' ; $ action = 'index' ; $ home = $ this -> getHome ( ) ; if ( isset ( $ home [ 'controller' ] ) && isset ( $ home [ 'action' ] ) && $ home [ 'controller' ] && $ home [ 'action' ] ) { $ controller = $ home [ 'controller' ] ; $ action = $ home [ 'action' ] ; } if ( $ this -> isPrettyUrl ( ) ) { $ homeUri = $ this -> createRelativeUrl ( "/{$controller}/action/{$action}" ) ; } else { $ homeUri = $ this -> createRelativeUrl ( '/index.php' , [ $ controller , 'action' => $ action ] ) ; } } return $ homeUri ; }
Get Home Uri
Get Home Uri