本文整理汇总了PHP中Zend_View::baseUrl方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_View::baseUrl方法的具体用法?PHP Zend_View::baseUrl怎么用?PHP Zend_View::baseUrl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zend_View
的用法示例。
在下文中一共展示了Zend_View::baseUrl方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: loadForm
/** Load the form options based on the broadperiod provided
* @access public
* @param string $broadperiod
* @return \GreekAndRomanCoinForm
* @throws Exception
*/
public function loadForm($broadperiod)
{
switch ($broadperiod) {
case 'ROMAN':
$form = new RomanCoinForm();
$form->details->setLegend('Add Roman numismatic data');
$form->submit->setLabel('Add Roman data');
$this->_view->headTitle('Add a Roman coin\'s details');
$this->_view->jQuery()->addJavascriptFile($this->_view->baseUrl() . '/js/JQuery/coinslinkedinit.js', $type = 'text/javascript');
break;
case 'IRON AGE':
$form = new IronAgeCoinForm();
$form->details->setLegend('Add Iron Age numismatic data');
$form->submit->setLabel('Add Iron Age data');
$this->_view->headTitle('Add an Iron Age coin\'s details');
$this->_view->jQuery()->addJavascriptFile($this->_view->baseUrl() . '/js/JQuery/iacoinslinkedinit.js', $type = 'text/javascript');
break;
case 'EARLY MEDIEVAL':
$form = new EarlyMedievalCoinForm();
$form->details->setLegend('Add Early Medieval numismatic data');
$form->submit->setLabel('Add Early Medieval data');
$this->_view->headTitle('Add an Early Medieval coin\'s details');
$this->_view->jQuery()->addJavascriptFile($this->_view->baseUrl() . '/js/JQuery/coinslinkedinitearlymededit.js', $type = 'text/javascript');
break;
case 'MEDIEVAL':
$form = new MedievalCoinForm();
$form->details->setLegend('Add Medieval numismatic data');
$form->submit->setLabel('Add Medieval data');
$this->_view->headTitle('Add a Medieval coin\'s details');
$this->_view->jQuery()->addJavascriptFile($this->_view->baseUrl() . '/js/JQuery/coinslinkedinitmededit.js', $type = 'text/javascript');
break;
case 'POST MEDIEVAL':
$form = new PostMedievalCoinForm();
$form->details->setLegend('Add Post Medieval numismatic data');
$form->submit->setLabel('Add Post Medieval data');
$this->_view->headTitle('Add a Post Medieval coin\'s details');
$this->_view->jQuery()->addJavascriptFile($this->_view->baseUrl() . '/js/JQuery/coinslinkedinitpostmededit.js', $type = 'text/javascript');
break;
case 'BYZANTINE':
$form = new ByzantineCoinForm();
$form->details->setLegend('Add Byzantine numismatic data');
$form->submit->setLabel('Add Byzantine data');
break;
case 'GREEK AND ROMAN PROVINCIAL':
$form = new GreekAndRomanCoinForm();
$form->details->setLegend('Add Greek & Roman numismatic data');
$form->submit->setLabel('Add Greek & Roman data');
break;
default:
throw new Exception('You cannot have a coin for that period.');
}
return $form;
}
示例2: indexAction
function indexAction()
{
//Zend_Session::namespaceUnset('cart');
$yourCart = new Zend_Session_Namespace('cart');
//$yourCart->count= ham_1($yourCart->count);
$ssInfo = $yourCart->getIterator();
$filter = new Zend_Filter_Digits();
$id = $filter->filter($this->_arrParam['id']);
if (count($yourCart->cart) == 0) {
$cart[$id] = 1;
$yourCart->cart = $cart;
} else {
//echo '<br>Trong gio hang da co san pham';
$tmp = $ssInfo['cart'];
if (array_key_exists($id, $tmp) == true) {
$tmp[$id] = $tmp[$id] + 1;
} else {
$tmp[$id] = 1;
}
$yourCart->cart = $tmp;
}
$base = new Zend_View();
$link = $base->baseUrl();
$url = $link . "/shoppingcart";
chuyen_trang($url);
}
示例3: postDispatch
/**
* postDispatch
*
* @param Zend_Controller_Request_Abstract $oRequest
* @return void
*/
public function postDispatch(Zend_Controller_Request_Abstract $oRequest)
{
// Vars
$module = $oRequest->getModuleName();
$controller = $oRequest->getControllerName();
$action = $oRequest->getActionName();
// Auto include action css/js
// @todo Include css/js from alternative directories if public folder for the theme
// is founded in other folder
$jsFind = false;
$publicPath = ROOT_PATH . $this->_frontOptions['publicDir'];
foreach ($this->_themes as $theme) {
$themePath = '/themes/' . $theme;
if ($module == "default") {
$cssUri = $themePath . "/controllers/{$controller}/{$action}.css";
$jsUri = $themePath . "/controllers/{$controller}/{$action}.js";
} else {
$cssUri = $themePath . "/modules/{$module}/{$controller}/{$action}.css";
$jsUri = $themePath . "/modules/{$module}/{$controller}/{$action}.js";
}
if (is_file($publicPath . "/" . $cssUri)) {
$this->_view->headLink()->appendStylesheet($this->_view->baseUrl($cssUri));
}
if (is_file($publicPath . "/" . $jsUri) and !$jsFind) {
$this->_view->headScript()->appendFile($this->_view->baseUrl($jsUri));
$jsFind = true;
}
}
}
示例4: dispatchLoopStartup
/**
* dispatchLoopStartup
*
* @param Zend_Controller_Request_Abstract $oRequest
* @return void
*/
public function dispatchLoopStartup(Zend_Controller_Request_Abstract $oRequest)
{
// Hack DOJO
Zend_Dojo_View_Helper_Dojo::setUseDeclarative();
$contextSwitch = Zend_Controller_Action_HelperBroker::getStaticHelper('ContextSwitch');
$contextParam = $contextSwitch->getContextParam();
$format = $oRequest->getParam($contextParam);
// Inject javascript vars
if (!$format or $format == "html" or $format == "html-json" or $format == "html-xml") {
$this->_view->dojo()->setDjConfigOption('ZlBaseUrl', $this->_view->baseUrl());
$this->_view->dojo()->setDjConfigOption('ZlBaseThemeUrl', $this->_view->baseThemeUrl());
$this->_view->dojo()->setDjConfigOption('ZlModule', $oRequest->getModuleName());
$this->_view->dojo()->setDjConfigOption('ZlController', $oRequest->getControllerName());
$this->_view->dojo()->setDjConfigOption('ZlAction', $oRequest->getActionName());
}
}
示例5: Search
public function Search()
{
$view = new Zend_View();
$base = $view->baseUrl();
// echo"<script type=\"text/javascript\" src=\"$base/js/AJAX_2.js\"></script>";
echo "<link href=\"{$base}/css/bootstrap-cerulean_1.css\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" >\n";
echo "<form action=\"{$base}/product/search\" method=\"get\" enctype=\"multipart/form-data\" name=\"tt_mh\" id=\"tt_mh\" class=\"form-horizontal\">\n <div class=\"control-group\" style='margin-left:-30px'>\n <label class=\"control-label\" for=\"selectError\">Tìm kiếm</label>\n <div class=\"controls\">\n <input name=\"title\" type=\"text\" class=\"span6 typeahead\" id=\"typeahead\" data-provide=\"typeahead\" style=\"float: left; margin-right: 10px; width: 250px\" >\n \n ";
$page = new Default_Model_Page();
$page->list_category();
echo " <script>\n \$(document).ready(function( ){\n \$(\"select option:selected\").each(function () {\n \$(\"div#div123\").get(\"{$base}/default/register/menu?id=\" + \$(this).val());\n });\t\n });\n\t\n \$(\"select#category_id\").change(function () {\n var str = \"\";\n \$(\"select option:selected\").each(function () {\n str += \$(this).val() + \" \";\n });\n \n })\n .change(function( ){\n \$(\"div#div123\").load(\"{$base}/default/register/menu?id=\" + \$(this).val());\n });\n </script> ";
echo "\n <div id=\"div123\" style=\"float: left; margin: 2px 10px 0px 0px\">\n <select name=\"\">\n <option>--- Chọn menu ---</option>\n </select>\n </div>\n <div id=\"div2\" style=\"float: left;margin: 2px 10px 0px 0px\"></div>\n <button type=\"submit\" class=\"btn btn-primary\" style=\"margin-top: 2px\">Search</button>\n </div>\n </div>\n \n\n \n \n \n \n</form>\n \n";
}
示例6: __construct
/** Construct the form
* @access public
*/
public function __construct()
{
$this->addPrefixPath('Pas_Form_Element', 'Pas/Form/Element', 'element');
$this->addElementPrefixPath('Pas_Filter', 'Pas/Filter/', 'filter');
$this->addElementPrefixPath('Pas_Validate', 'Pas/Validate/', 'validate');
$this->setAttrib('class', 'form-horizontal');
$this->setAttrib('accept-charset', 'UTF-8');
$this->clearDecorators();
$this->_view = Zend_Layout::getMvcInstance()->getView();
$this->_view->jQuery()->addJavascriptFile($this->_view->baseUrl() . '/js/select2.min.js', $type = 'text/javascript');
$this->_view->jQuery()->addJavascriptFile($this->_view->baseUrl() . '/js/selectPrettify.js', $type = 'text/javascript');
$this->_view->headLink()->appendStylesheet($this->_view->baseUrl() . '/css/select2.css', $type = 'screen');
$this->_view->headLink()->appendStylesheet($this->_view->baseUrl() . '/css/bootstrap-multiselect.css', $type = 'screen');
$person = new Pas_User_Details();
$details = $person->getPerson();
if ($details) {
$this->_role = $details->role;
} else {
$this->_role = 'public';
}
parent::__construct();
}
示例7: _getAvailableIcons
/**
* Returns a list of available icons under 'htdocs/pulse/icons'
* @return string[]
*/
protected function _getAvailableIcons()
{
$icons = array();
$iterator = new DirectoryIterator(realpath(GEMS_WEB_DIR . '/gems/icons'));
foreach ($iterator as $fileinfo) {
if ($fileinfo->isFile()) {
// $icons[$fileinfo->getFilename()] = $fileinfo->getFilename();
$filename = $fileinfo->getFilename();
$url = $this->view->baseUrl() . \MUtil_Html_ImgElement::getImageDir($filename);
$icons[$fileinfo->getFilename()] = \MUtil_Html::create('span', $filename, array('style' => 'background: transparent url(' . $url . $filename . ') center right no-repeat; padding-right: 20px;'));
}
}
return $icons;
}
示例8: addBasicFilesOfRequestToView
/**
* Metodo que adicona os arquivos CSS/JS básicos para a requisição.
*
* @param Zend_View $view
*/
public function addBasicFilesOfRequestToView(&$view, $inibeCache = false)
{
// Paths básicos para os arquivos de JS e CSS
$pathStylesheet = SITE_PATH . '/css';
$pathScript = SITE_PATH . '/js';
// Incrementa cada path com a expressao
// <path>/<module>/<controller>/<action>.(css,js)
$pathStylesheet .= '/' . $this->getRequest()->getModuleName() . '/' . $this->getRequest()->getControllerName() . '/' . $this->getRequest()->getActionName() . '.css';
$pathScript .= '/' . $this->getRequest()->getModuleName() . '/' . $this->getRequest()->getControllerName() . '/' . $this->getRequest()->getActionName() . '.js';
// Verifica se o path indicado é realmente um arquivo de estilos válido
if (is_file($pathStylesheet) && is_readable($pathStylesheet)) {
// Recupera o caminho relativo do arquivo
$relativeStylesheet = str_replace(SITE_PATH, $view->baseUrl(), $pathStylesheet);
// Adiciona o arquivo a lista de styles do site
$view->headLink()->appendStylesheet($relativeStylesheet . ($inibeCache ? '?' . mt_rand(0, 99999) : ''));
}
// Verifica se o path indicado é realmente um arquivo de scripts válido
if (is_file($pathScript) && is_readable($pathScript)) {
// Recupera o caminho relativo do arquivo
$relativeScript = str_replace(SITE_PATH, $view->baseUrl(), $pathScript);
// Adiciona o arquivo a lista de styles do site
$view->headScript()->appendFile($relativeScript . ($inibeCache ? '?' . mt_rand(0, 99999) : ''));
}
}
示例9: cart_order
public function cart_order($arrParam)
{
$view = new Zend_View();
$base = $view->baseUrl();
// echo '<pre>';
// print_r($arrParam['cart']['71']);
// echo '</pre>';
//var_dump(count($arrParam['cart']));
if (count($arrParam) > 0) {
$i = 1;
foreach ($arrParam as $k => $v) {
if ($k) {
$i = 2;
}
}
if ($i == 2) {
$sl = 0;
foreach ($arrParam as $key => $val) {
$item[] = $key;
$demo[] = $val;
}
$ids = implode(",", $item);
for ($i = 0; $i < count($arrParam); $i++) {
$id = $item[$i];
$sl = $demo[$i];
}
$ids = implode(",", $item);
echo "\n <div style=\"margin-bottom:3px\"><font> Tổng số: <span class=\"so_luong\" > {$sl}</span> sản phẩm</font></div>\n\t\t\t\n\t\t\t<a href=\"{$base}/shoppingcart\" ><img style=\"margin-bottom:5px;\" src=\"{$base}/template/images/sua-gio-hang.jpg\" align=\"texttop\" /></a>\n\n\n";
$query = "SELECT * FROM products where id in ({$ids}) order by position ASC, id DESC";
$stml = $this->db->fetchAll($query);
return $stml;
} else {
}
} else {
}
}
示例10: preDispatch
public function preDispatch(Zend_Controller_Request_Abstract $request)
{
$this->controller = $request->getControllerName();
$this->action = $request->getActionName();
$this->module = $request->getModuleName();
/* Adiciono os js padrão */
$view = new Zend_View();
$cfg = Zend_Registry::get('config');
$module = $request->getModuleName();
$controller = $request->getControllerName();
$action = $request->getActionName();
$layout = Zend_Layout::getMvcInstance()->getLayout();
// $jss = array(
// 'config'
// );
//
//
//
// foreach ($jss as $js)
// $view->headScript()->appendFile($view->baseUrl($js), 'text/javascript');
/* * ******************************JS e CSS Adicionais***************************** */
$jss_adicionais = $cfg->{$module} ? $cfg->{$module}->headScript ? $cfg->{$module}->headScript->toArray() : false : false;
$css_adicionais = $cfg->{$module} ? $cfg->{$module}->headLink ? $cfg->{$module}->headLink->toArray() : false : false;
$jss_adicionaisAmbos = $cfg->ambos->headScript ? $cfg->ambos->headScript->toArray() : false;
$css_adicionaisAmbos = $cfg->ambos->headLink ? $cfg->ambos->headLink->toArray() : false;
$adicionais = array();
if ($jss_adicionais) {
$adicionais = array_merge($adicionais, $jss_adicionais);
}
if ($css_adicionais) {
$adicionais = array_merge($adicionais, $css_adicionais);
}
if ($jss_adicionaisAmbos) {
$adicionais = array_merge($adicionais, $jss_adicionaisAmbos);
}
if ($css_adicionaisAmbos) {
$adicionais = array_merge($adicionais, $css_adicionaisAmbos);
}
//Adicionando essenciais na página Auth
if ($controller == 'auth') {
$jquery = 'public/js/jquery.min.js';
$view->headScript()->appendFile($view->baseUrl($jquery), 'text/javascript');
$jsmaruti = 'public/js/maruti.login.js';
$view->headScript()->appendFile($view->baseUrl($jsmaruti), 'text/javascript');
$bootstrapcss = 'public/css/bootstrap.min.css';
$view->headLink()->appendStylesheet($view->baseUrl($bootstrapcss));
$bootstrapresponsive = 'public/css/bootstrap-responsive.min.css';
$view->headLink()->appendStylesheet($view->baseUrl($bootstrapresponsive));
$maruti = 'public/css/maruti-login.css';
$view->headLink()->appendStylesheet($view->baseUrl($maruti));
}
//Acrescento o basedir nas urls e adiciono na página
if (count($adicionais) && $controller != 'auth') {
foreach ($adicionais as $adicional) {
$fileAdicional = 'public' . $adicional;
$ext = array_pop(explode('.', $fileAdicional));
if ($ext == 'js') {
$view->headScript()->appendFile($view->baseUrl($fileAdicional), 'text/javascript');
} else {
$view->headLink()->appendStylesheet($view->baseUrl($fileAdicional));
}
}
}
// $view->headLink(array('rel' => 'shortcut icon',
//
// 'href' => $view->baseUrl('/data/favicon.ico')));
/* * ************************************************************************* */
if ($controller != 'impressos') {
My_Layout_Assist::out();
}
$viewLayout = Zend_Layout::getMvcInstance()->getView();
$viewLayout->controller = $controller;
$viewLayout->action = $action;
######################################################################
$mod = $request->getModuleName();
$controller = $this->controller = $request->getControllerName();
$action = $request->getActionName();
Zend_Layout::getMvcInstance()->setLayoutPath(APPLICATION_PATH . DS . 'modules' . DS . $mod . DS . 'views' . DS . 'layouts');
$view = new Zend_View();
$auth = Zend_Auth::getInstance();
// if ($auth->hasIdentity()) {
//
// $table = new User();
//
// $user = $auth->getIdentity();
//
// $viewLayout->user = $table->fetchRow(array('id = ?' => $user->id));
// }
}
示例11: page_sildeshow
public function page_sildeshow()
{
$view = new Zend_View();
$base = $view->baseUrl();
echo "\n <link rel=\"stylesheet\" href=\"{$base}/template/js_side/nivo-slider.css\" type=\"text/css\" media=\"all\" />\n <link rel=\"stylesheet\" href=\"{$base}/template/js_side/style_1.css\" type=\"text/css\" media=\"all\" /> \n";
echo "\n <div id=\"slider\" class=\"nivoSlider\">";
$query = "SELECT * FROM side order by position ASC limit 0,10 ";
$stml = $this->db->prepare($query);
$stml->execute();
while ($result = $stml->fetch(PDO::FETCH_ASSOC)) {
$id = $result['id'];
$images = $result['images'];
$title = $result['title'];
$description = nl2br($result['description']);
$link = $result['link'];
// cache
echo " \n \n \n <img src=\"{$base}/Upload/{$images}\" alt=\"{$title}\" title=\"{$title}\" data-transition=\"fade\" />\n \n \n\n ";
//Zend_Registry::get('Cache')->remove('main_menu');
}
echo "</div> ";
echo " <script type=\"text/javascript\" src=\"{$base}/template/js_side/jquery-1.4.3.min.js\"></script>";
echo " <script type=\"text/javascript\" src=\"{$base}/template/js_side/jquery.nivo.slider.pack.js\"></script>";
echo "<script type=\"text/javascript\">\n \$(window).load(function() {\n \$('#slider').nivoSlider();\n });\n </script>";
}
示例12: afterSave
function afterSave()
{
$session = SessionWrapper::getInstance();
# add log to audit trail
$view = new Zend_View();
$url = $view->serverUrl($view->baseUrl('role/view/id/' . encode($this->getID())));
$usecase = '0.4';
$module = '0';
$type = SYSTEM_CREATEROLE;
$details = "Role <a href='" . $url . "' class='blockanchor'>" . $this->getName() . "</a> created";
$browser = new Browser();
$audit_values = $session->getVar('browseraudit');
$audit_values['module'] = $module;
$audit_values['usecase'] = $usecase;
$audit_values['transactiontype'] = $type;
$audit_values['status'] = "Y";
$audit_values['userid'] = $session->getVar('userid');
$audit_values['transactiondetails'] = $details;
$audit_values['url'] = $url;
// debugMessage($audit_values);
$this->notify(new sfEvent($this, $type, $audit_values));
}
示例13: contactAction
function contactAction()
{
$muser = new Default_Model_System();
$conten = $muser->list_system();
$this->view->book = $conten;
$captcha = new Zend_Captcha_Image();
$vi = new Zend_View();
$base = $vi->baseUrl();
if (!$this->_request->isPost()) {
$captcha->setTimeout('300')->setWordLen('4')->setHeight('50')->setWidth('200')->setImgDir(APPLICATION_PATH . '/../captcha/images/')->setImgUrl($base . '/captcha/images/')->setFont(APPLICATION_PATH . '/../font/UTM-Avo.ttf');
$captcha->generate();
$this->view->captcha = $captcha->render($this->view);
$this->view->captchaID = $captcha->getId();
// Dua chuoi Captcha vao session
$captchaSession = new Zend_Session_Namespace('Zend_Form_Captcha_' . $captcha->getId());
$captchaSession->word = $captcha->getWord();
} else {
$captchaID = $this->_request->captcha_id;
$captchaSession = new Zend_Session_Namespace('Zend_Form_Captcha_' . $captchaID);
$captchaIterator = $captchaSession->getIterator();
$captchaWord = $captchaIterator['word'];
if ($this->_request->captcha == $captchaWord) {
$this->view->purifier = Zend_Registry::get('purifier');
$conf = HTMLPurifier_Config::createDefault();
$purifier = new HTMLPurifier($conf);
$fullname = $purifier->purify($this->_request->getParam('fullname'));
$address = $purifier->purify($this->_request->getParam('address'));
$phone = $purifier->purify($this->_request->getParam('phone'));
$email = $purifier->purify($this->_request->getParam('email'));
$content = $purifier->purify($this->_request->getParam('content'));
$title = $purifier->purify($this->_request->getParam('title'));
$emaillh = $conten[0]['email'];
$tinnhan = "\n\t\t\tHọ tên : {$fullname} <br>\n\t\t\tEmail : {$email}<br>\n\t\t\tĐịa chỉ : {$address}<br>\n\t\t\tĐiện thoại : {$phone}<br>\n\t\t\t\n\t\t\tNội dung : {$content}<br>";
require 'ham/class.phpmailer.php';
require 'ham/class.pop3.php';
// nạp thư viện
$mail = new PHPMailer();
// khởi tạo đối tượng
$mail->IsSMTP();
// gọi class smtp để đăng nhập
$mail->CharSet = "utf-8";
// bảng mã unicode
//Đăng nhập Gmail
$mail->SMTPAuth = true;
// Đăng nhập
$mail->SMTPSecure = "ssl";
// Giao thức SSL
$mail->Host = "smtp.gmail.com";
// SMTP của GMAIL
$mail->Port = 465;
// cổng SMTP
// Phải chỉnh sửa lại
$mail->Username = "dadichvu.88@gmail.com";
// GMAIL username
$mail->Password = "itwebsite";
// GMAIL password
$mail->Subject = 'Thông tin liên hệ';
$mail->AddAddress("{$emaillh}");
//email người nhận
$mail->AddBcc("lynguyetvan88@gmail.com");
// Chuẩn bị gửi thư nào
$mail->FromName = mb_convert_encoding($fullname, "UTF-8", "auto");
// tên người gửi
$mail->From = "{$email}";
// mail người gửi
$mail->IsHTML(true);
//Bật HTML không thích thì false
// Nội dung lá thư
$mail->Body = "{$tinnhan}";
// Gửi email
if ($mail->Send()) {
// Gửi không được, đưa ra thông báo lỗi
$muser->contact($fullname, $address, $phone, $email, $title, $content);
thongbao("Cảm ơn bạn đã liên hệ cho chúng tôi");
trangtruoc();
} else {
echo "Không gửi được ";
echo "Lỗi: " . $mail->ErrorInfo;
}
} else {
thongbao('Bạn nhập sai chuỗi Captcha');
trang_truoc();
}
$this->_helper->viewRenderer->setNoRender();
$mask = APPLICATION_PATH . "/../captcha/images/*.png";
array_map("unlink", glob($mask));
}
}
示例14: getProfilePath
function getProfilePath()
{
$path = "";
$view = new Zend_View();
// $path = '<a href="'.$view->serverUrl($view->baseUrl('user/'.strtolower($this->getUserName()))).'">'.$view->serverUrl($view->baseUrl('user/'.strtolower($this->getUserName()))).'</a>';
$path = '<a href="javascript: void(0)">' . $view->serverUrl($view->baseUrl('user/' . strtolower($this->getUserName()))) . '</a>';
return $path;
}
示例15: getFullBaseUrl
/**
* get full base url (http://www.example.com/socialstrap)
*/
public static function getFullBaseUrl($include_base = true)
{
$front = Zend_Controller_Front::getInstance();
$view = new Zend_View();
if ($include_base) {
$base_url = $view->baseUrl();
} else {
$base_url = '';
}
$url = $front->getRequest()->getScheme() . '://' . $front->getRequest()->getHttpHost() . $base_url;
return $url;
}