久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    • <bdo id='yORyX'></bdo><ul id='yORyX'></ul>
    <legend id='yORyX'><style id='yORyX'><dir id='yORyX'><q id='yORyX'></q></dir></style></legend>

    <small id='yORyX'></small><noframes id='yORyX'>

      <tfoot id='yORyX'></tfoot>
        <i id='yORyX'><tr id='yORyX'><dt id='yORyX'><q id='yORyX'><span id='yORyX'><b id='yORyX'><form id='yORyX'><ins id='yORyX'></ins><ul id='yORyX'></ul><sub id='yORyX'></sub></form><legend id='yORyX'></legend><bdo id='yORyX'><pre id='yORyX'><center id='yORyX'></center></pre></bdo></b><th id='yORyX'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='yORyX'><tfoot id='yORyX'></tfoot><dl id='yORyX'><fieldset id='yORyX'></fieldset></dl></div>

        Zend Framework $this->baseUrl() 總是返回當(dāng)前頁(yè)面 :

        Zend Framework $this-gt;baseUrl() always returns the current page :( why(Zend Framework $this-baseUrl() 總是返回當(dāng)前頁(yè)面 :( 為什么)

            <bdo id='xsdHt'></bdo><ul id='xsdHt'></ul>
            • <legend id='xsdHt'><style id='xsdHt'><dir id='xsdHt'><q id='xsdHt'></q></dir></style></legend>
                    <tbody id='xsdHt'></tbody>

                1. <small id='xsdHt'></small><noframes id='xsdHt'>

                  <tfoot id='xsdHt'></tfoot>
                  <i id='xsdHt'><tr id='xsdHt'><dt id='xsdHt'><q id='xsdHt'><span id='xsdHt'><b id='xsdHt'><form id='xsdHt'><ins id='xsdHt'></ins><ul id='xsdHt'></ul><sub id='xsdHt'></sub></form><legend id='xsdHt'></legend><bdo id='xsdHt'><pre id='xsdHt'><center id='xsdHt'></center></pre></bdo></b><th id='xsdHt'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='xsdHt'><tfoot id='xsdHt'></tfoot><dl id='xsdHt'><fieldset id='xsdHt'></fieldset></dl></div>

                  本文介紹了Zend Framework $this->baseUrl() 總是返回當(dāng)前頁(yè)面 :( 為什么的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

                  查看本網(wǎng)站 www.fltdata.com.出于某種原因,無(wú)論您訪問(wèn)哪個(gè)頁(yè)面,主頁(yè)鏈接都不是指向主頁(yè),而是指向當(dāng)前頁(yè)面.它在我的本地主機(jī)上運(yùn)行良好,但在網(wǎng)上它的行為是這樣的.主頁(yè)鏈接的 href 值就是:$this->baseUrl()

                  check out this website www.fltdata.com. For some reason the home link no matter what page you go on instead of pointing to the home page it points to the current page. It works fine on my localhost but online its behaving like this. The href value of the home link is just : $this->baseUrl()

                  這里有什么問(wèn)題..

                  === 編輯===

                  好吧,我創(chuàng)建了一個(gè)助手,如下所示:

                  Well I have created a helper which is as below:

                  class Zend_View_Helper_BaseUrl
                  {
                      protected $_baseUrl;
                  
                      function __construct()
                      {
                          $fc = Zend_Controller_Front::getInstance();
                          $this->_baseUrl =  $fc->getBaseUrl();
                      }
                  
                      function baseUrl()
                      {
                          return $this->_baseUrl;
                      }
                  }
                  

                  這是我猜每當(dāng)我調(diào)用 $this->baseUrl 時(shí)會(huì)調(diào)用什么.這可能是問(wèn)題所在 - 但是它在我的本地主機(jī)上運(yùn)行正常,而不是在線,所以 - 一定是某種配置問(wèn)題 - 我應(yīng)該在哪里查看?

                  ANd this is I guess whats being called whenever I call $this->baseUrl. Could this be the problem - however it works okay in my localhost and not online so - must be some kind of configuration issue - where should I look?

                  推薦答案

                  如果不了解有關(guān) ZF 設(shè)置和 e.h. 的更多詳細(xì)信息,就很難判斷這里出了什么問(wèn)題.url 重寫(xiě)設(shè)置.Zend_Controller_Request_Http::getBaseUrl() 背后的邏輯 - 如果沒(méi)有 baseUrl,您對(duì) Zend_View_Helper_BaseUrl::baseUrl() 的調(diào)用將被代理到在前端控制器中顯式設(shè)置 - 非常復(fù)雜,涉及 4 個(gè)不同的服務(wù)器變量(在確定當(dāng)前請(qǐng)求 URI 的過(guò)程中還有一些).

                  It's hard to tell what's going wrong here without knowing more details about your ZF setup and e.h. the url-rewriting-setup. The logic behind Zend_Controller_Request_Http::getBaseUrl() - this is where your call to Zend_View_Helper_BaseUrl::baseUrl() will beproxied to if no baseUrl is set explicitly in the front-controller - is quite complex and involves 4 different server variables (and some more in the process of determining the current request URI).

                  克服這個(gè)問(wèn)題最簡(jiǎn)單的方法可能是在引導(dǎo)程序的前端控制器上設(shè)置 baseUrl(相對(duì)于服務(wù)器根目錄).如果你正在使用新的 Zend_Application-bootstrapping 你只需要添加

                  The easiest thing to overcome this problem would perhaps be to set the baseUrl (relative to the server root) on the front-controller in your bootstrap. If you're using the new Zend_Application-bootstrapping you'll just have to add

                  resources.frontController.baseUrl = "/subdir"
                  

                  到您的配置.

                  編輯

                  您的助手或多或少類(lèi)似于 ZF 附帶的原始 baseUrl-helper.原始的也代理 Zend_Controller_Front::getBaseUrl().您使用哪個(gè)版本的 ZF?您是否有理由不使用隨附的 baseUrl-helper?

                  Your helper more or less resembles the original baseUrl-helper shipped with the ZF. The original one also proxies to Zend_Controller_Front::getBaseUrl(). Which version of ZF do you use? Is there a reason why you don't use the shipped baseUrl-helper?

                  您是否嘗試過(guò)在引導(dǎo)程序中明確設(shè)置 baseUrl?

                  Have you tried to set the baseUrl in your bootstrapping explicitly?

                  這篇關(guān)于Zend Framework $this->baseUrl() 總是返回當(dāng)前頁(yè)面 :( 為什么的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  Deadlock exception code for PHP, MySQL PDOException?(PHP、MySQL PDOException 的死鎖異常代碼?)
                  PHP PDO MySQL scrollable cursor doesn#39;t work(PHP PDO MySQL 可滾動(dòng)游標(biāo)不起作用)
                  PHP PDO ODBC connection(PHP PDO ODBC 連接)
                  Using PDO::FETCH_CLASS with Magic Methods(使用 PDO::FETCH_CLASS 和魔術(shù)方法)
                  php pdo get only one value from mysql; value that equals to variable(php pdo 只從 mysql 獲取一個(gè)值;等于變量的值)
                  MSSQL PDO could not find driver(MSSQL PDO 找不到驅(qū)動(dòng)程序)
                  • <bdo id='k9Tam'></bdo><ul id='k9Tam'></ul>

                      <tbody id='k9Tam'></tbody>

                        <i id='k9Tam'><tr id='k9Tam'><dt id='k9Tam'><q id='k9Tam'><span id='k9Tam'><b id='k9Tam'><form id='k9Tam'><ins id='k9Tam'></ins><ul id='k9Tam'></ul><sub id='k9Tam'></sub></form><legend id='k9Tam'></legend><bdo id='k9Tam'><pre id='k9Tam'><center id='k9Tam'></center></pre></bdo></b><th id='k9Tam'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='k9Tam'><tfoot id='k9Tam'></tfoot><dl id='k9Tam'><fieldset id='k9Tam'></fieldset></dl></div>

                        <small id='k9Tam'></small><noframes id='k9Tam'>

                          <legend id='k9Tam'><style id='k9Tam'><dir id='k9Tam'><q id='k9Tam'></q></dir></style></legend>
                          1. <tfoot id='k9Tam'></tfoot>
                          2. 主站蜘蛛池模板: 免费在线看黄视频 | 亚洲视频在线一区 | 亚洲一区二区免费视频 | 成人久久18免费网站图片 | 色网在线看| 久久久久亚洲精品国产 | 香蕉视频在线播放 | 一区二区在线不卡 | 毛片视频免费观看 | 国产美女视频黄a视频免费 国产精品福利视频 | 粉色午夜视频 | 亚洲专区在线 | 激情久久av一区av二区av三区 | 另类 综合 日韩 欧美 亚洲 | 日韩在线一区二区三区 | 久久久精品视频免费 | 久久av一区二区三区 | 成人99 | 337p日本欧洲亚洲大胆精蜜臀 | 精品国产一区二区三区久久 | 国产一区二区三区精品久久久 | 午夜欧美一区二区三区在线播放 | 国产精品久久av | 精品一区二区三区中文字幕 | 欧美黑人体内she精在线观看 | 欧美在线日韩 | 九色网址 | 日本午夜免费福利视频 | 人人干人人干人人 | 高清久久久 | 国产视频久久久 | 久久久久久久久91 | 91久久网站 | 99re视频在线 | 中文二区 | 四虎最新视频 | 九九热国产精品视频 | 嫩呦国产一区二区三区av | 日韩精品专区在线影院重磅 | 亚洲精品一区中文字幕乱码 | 欧美精品久久久 |