Moderators: jmacgreg, michael, John
if ($serverHost !== null) {
// Auto-detection worked.
$_this->_baseUrl = $_this->getProtocol() . '://' . $_this->getServerHost() . $_this->getBasePath();
} else {
// Auto-detection didn't work (e.g. this is a command-line call); use configuration param
$_this->_baseUrl = Config::getVar('general', 'base_url');
}if ($serverHost !== null) {
// Auto-detection worked.
$_this->_baseUrl = $_this->getProtocol() . '://' . $_this->getServerHost() . $_this->getBasePath();
echo 'foo' . $_this->_baseUrl;
} else {
// Auto-detection didn't work (e.g. this is a command-line call); use configuration param
$_this->_baseUrl = Config::getVar('general', 'base_url');
echo 'bar'. $_this->_baseUrl;
}$this->assign('baseUrl', $request->getBaseUrl());Return to OCS Technical Support
Users browsing this forum: No registered users and 1 guest