src/View/Helper/RequireHelper.php
protected function _getAppBase()
    {
        $baseUrl = Configure::read('App.base');
        if (!$baseUrl) {
            $request = Router::getRequest(true);
            if (!$request) {
                $baseUrl = '';
            } else {
                $baseUrl = $request->base;
            }
        }
        return $baseUrl . '/';
    }
protected function _getAppBase()
    {
        $baseUrl = Configure::read('App.base');
        if (!$baseUrl) {
            $request = Router::getRequest(true);
            if (!$request) {
                $baseUrl = '';
            } else {
                $baseUrl = $request->base;
            }
        }
        return $baseUrl . '/';
    }
protected function _getAppBase ( ) { $ baseUrl = Configure :: read ( 'App.base' ) ; if ( ! $ baseUrl ) { $ request = Router :: getRequest ( true ) ; if ( ! $ request ) { $ baseUrl = '' ; } else { $ baseUrl = $ request -> base ; } } return $ baseUrl . '/' ; }
Return the content of CakePHP App.base.
If the App.base value is false, it returns the generated URL automatically
by mimicking how CakePHP add the base to its URL.

@return string the application base directory
Return the content of CakePHP App . base . If the App . base value is false it returns the generated URL automatically by mimicking how CakePHP add the base to its URL .