public function root($pathonly = false)
	{
		$root = rtrim(($pathonly ? '' : $this->getSchemeAndHttpHost()) . $this->getBasePath(), '/');
		$root = explode('/', $root);
		if (in_array(end($root), array('administrator', 'api')))
		{
			array_pop($root);
		}

		return implode('/', $root) . '/';
	}
public function root($pathonly = false)
	{
		$root = rtrim(($pathonly ? '' : $this->getSchemeAndHttpHost()) . $this->getBasePath(), '/');
		$root = explode('/', $root);
		if (in_array(end($root), array('administrator', 'api')))
		{
			array_pop($root);
		}

		return implode('/', $root) . '/';
	}
public function root ( $ pathonly = false ) { $ root = rtrim ( ( $ pathonly ? '' : $ this -> getSchemeAndHttpHost ( ) ) . $ this -> getBasePath ( ) , '/' ) ; $ root = explode ( '/' , $ root ) ; if ( in_array ( end ( $ root ) , array ( 'administrator' , 'api' ) ) ) { array_pop ( $ root ) ; } return implode ( '/' , $ root ) . '/' ; }
Get the root URL for the application.

@param   boolean  $pathonly  If false, prepend the scheme, host and port information. Default is false.
@return  string
Get the root URL for the application .