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

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

          <bdo id='P8KEJ'></bdo><ul id='P8KEJ'></ul>
      2. <small id='P8KEJ'></small><noframes id='P8KEJ'>

        <legend id='P8KEJ'><style id='P8KEJ'><dir id='P8KEJ'><q id='P8KEJ'></q></dir></style></legend>
      3. 在 Zend 2 框架應用程序中的請求 url 上找不到頁面

        Page not found on request url in zend 2 framework application(在 Zend 2 框架應用程序中的請求 url 上找不到頁面)
        <i id='fTr1x'><tr id='fTr1x'><dt id='fTr1x'><q id='fTr1x'><span id='fTr1x'><b id='fTr1x'><form id='fTr1x'><ins id='fTr1x'></ins><ul id='fTr1x'></ul><sub id='fTr1x'></sub></form><legend id='fTr1x'></legend><bdo id='fTr1x'><pre id='fTr1x'><center id='fTr1x'></center></pre></bdo></b><th id='fTr1x'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='fTr1x'><tfoot id='fTr1x'></tfoot><dl id='fTr1x'><fieldset id='fTr1x'></fieldset></dl></div>

      4. <small id='fTr1x'></small><noframes id='fTr1x'>

            <bdo id='fTr1x'></bdo><ul id='fTr1x'></ul>

                <tfoot id='fTr1x'></tfoot>
                  <tbody id='fTr1x'></tbody>
                • <legend id='fTr1x'><style id='fTr1x'><dir id='fTr1x'><q id='fTr1x'></q></dir></style></legend>
                • 本文介紹了在 Zend 2 框架應用程序中的請求 url 上找不到頁面的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我是 zend 框架的新手,我正在嘗試配置 zend.我在 window 7XAMPP

                  I am newbie to zend framework and i am trying to configure the zend. I was sucessfully installed zendskeleton applicaion on window 7 and XAMPP

                  安裝后,我正在按照用戶指南中的定義創建新模塊相冊.我根據指南制作了所有代碼和頁面,但之后我可以打開相冊模塊.我收到錯誤 404 未找到.

                  After installation I am creating new module Album as per define in user guide. I was make all code and pages according to guide, but after that i was enable to open Album module. i got error 404 not found.

                  這里是代碼

                  1. application.config

                   return array(
                  
                   'modules' => array(
                   'Application','Album',
                   ),
                  
                  'module_paths' => array(
                  './module',
                  './vendor',
                  ),
                  
                  'config_glob_paths' => array(
                  'config/autoload/{,*.}{global,local}.php',
                   ),
                  
                    ),
                      );
                  

                • module.config

                   return array(
                      'controllers' => array(
                       'invokables' => array(
                       'AlbumControllerAlbum' => 'AlbumControllerAlbumController',
                       ),
                        ),
                        'router' => array(
                         'routes' => array(
                           'album' => array(
                            'type' => 'segment',
                               'options' => array(
                                   'route' => '/album[/][:action][/:id]',
                                       'constraints' => array(
                                           'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                                               'id' => '[0-9]+',
                                               ),
                                               'defaults' => array(
                                                   'controller' => 'AlbumControllerAlbum',
                                                       'action' => 'index',
                                           ),
                                       ),
                                   ),
                               ),
                           ),
                  
                                               'view_manager' => array(
                                               'template_path_stack' => array(
                                               'album' => __DIR__ . '/../view',
                                               ),
                                          ),
                                      );
                  

                • Module.php

                  namespace Album;
                  
                   // Add these import statements:
                   use AlbumModelAlbum;
                   use AlbumModelAlbumTable;
                   use ZendDbResultSetResultSet;
                   use ZendDbTableGatewayTableGateway;
                  
                   class Module
                   {
                    // getAutoloaderConfig() and getConfig() methods here
                  
                  
                  
                   // Add this method:
                    public function getServiceConfig()
                     {
                        return array(
                        'factories' => array(
                        'AlbumModelAlbumTable' => function($sm) {
                         $tableGateway = $sm->get('AlbumTableGateway');
                         $table = new AlbumTable($tableGateway);
                         return $table;
                     },
                       'AlbumTableGateway' => function ($sm) {
                        $dbAdapter = $sm->get('ZendDbAdapterAdapter');
                        $resultSetPrototype = new ResultSet();
                        $resultSetPrototype->setArrayObjectPrototype(new Album());
                        return new TableGateway('album', $dbAdapter, null, $resultSetPrototype);
                      },
                     ),
                     );
                     }
                      }
                  

                • httpd-vhosts.conf

                   <VirtualHost *:81>
                   ServerName zf2-tutorial.localhost
                   DocumentRoot "C:/xampphtdocs/ZendSkeletonApplication/ZendSkeletonApplication-master/public"
                   SetEnv APPLICATION_ENV "development"
                   <Directory C:/xampphtdocs/ZendSkeletonApplication/ZendSkeletonApplication-master/public>
                    DirectoryIndex index.php
                    AllowOverride All
                    Order allow,deny
                    Allow from all
                    </Directory>
                    </VirtualHost>
                  

                • system32

                    127.0.0.1:8081       zf2-tutorial.localhost
                  

                • 我該如何處理.謝謝

                  推薦答案

                  當您將 apache 文檔根目錄指向 C:/xampphtdocs/ZendSkeletonApplication/ZendSkeletonApplication-master/public

                  when you point with your apache document root to C:/xampphtdocs/ZendSkeletonApplication/ZendSkeletonApplication-master/public

                  你需要在瀏覽器中使用這個 url http://zf2-tutorial.localhost:8081/album而不是像你寫的 http://zf2-tutorial.localhost/ZendSkeletonApplication/ZendSkeletonApplication-master/public/album

                  you need to use in your browser this url http://zf2-tutorial.localhost:8081/album and not like you wrote http://zf2-tutorial.localhost/ZendSkeletonApplication/ZendSkeletonApplication-master/public/album

                  此 url 指向內部不同的模塊/位置.

                  this url points internal to a different module/location.

                  //編輯

                  如果這不起作用,請檢查您的 zf2 /public 文件夾,如果存在 .htaccess 文件,否則請在此處使用來自 zend 框架應用程序的文件 https://github.com/zendframework/ZendSkeletonApplication/blob/master/public/.htaccess

                  if this not work check your zf2 /public folder if there is a .htaccess file present otherwise use the file from the zend skeleton application here https://github.com/zendframework/ZendSkeletonApplication/blob/master/public/.htaccess

                  如果 port 等于您的 windows 主機 文件端口,請同時檢查您的 apache vhost 條目.

                  please check also your apache vhost entry if the port is equal to your windows host file port.

                  確保 apache ModRewrite 已加載!

                  make sure apache ModRewrite is loaded!

                  這篇關于在 Zend 2 框架應用程序中的請求 url 上找不到頁面的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  Deadlock exception code for PHP, MySQL PDOException?(PHP、MySQL PDOException 的死鎖異常代碼?)
                  PHP PDO MySQL scrollable cursor doesn#39;t work(PHP PDO MySQL 可滾動游標不起作用)
                  PHP PDO ODBC connection(PHP PDO ODBC 連接)
                  Using PDO::FETCH_CLASS with Magic Methods(使用 PDO::FETCH_CLASS 和魔術方法)
                  php pdo get only one value from mysql; value that equals to variable(php pdo 只從 mysql 獲取一個值;等于變量的值)
                  MSSQL PDO could not find driver(MSSQL PDO 找不到驅動程序)

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

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

                              <tbody id='wxMIp'></tbody>
                            <legend id='wxMIp'><style id='wxMIp'><dir id='wxMIp'><q id='wxMIp'></q></dir></style></legend>
                          • <tfoot id='wxMIp'></tfoot>

                          • 主站蜘蛛池模板: 免费成年网站 | 人人人艹 | 亚洲va欧美va天堂v国产综合 | 久久精品一区二区三区四区 | 91在线电影 | 亚洲日韩中文字幕一区 | 亚洲一区国产精品 | 一区二区在线 | 国产精品免费一区二区 | 天天操夜夜操 | 找个黄色片 | 精品成人 | 日本视频免费 | 国产综合精品一区二区三区 | 日产精品久久久一区二区福利 | 欧美在线一区二区三区 | 亚洲欧美日韩久久 | 成人免费一区二区三区视频网站 | 亚洲国内精品 | 欧美日韩免费 | 亚洲精品永久免费 | 国产精品久久久久久网站 | h视频免费观看 | 中文字幕亚洲一区二区三区 | 午夜免费视频 | 午夜影院黄 | 久久一区 | 成人精品啪啪欧美成 | 欧美日韩久久 | 精品毛片视频 | 色综合天天综合网国产成人网 | 日韩国产精品一区二区三区 | 香蕉婷婷| 成人在线中文 | 欧美精品久久 | 国产精品久久久久永久免费观看 | 国产精品免费大片 | 伊人中文字幕 | 激情五月婷婷丁香 | 欧美精品成人一区二区三区四区 | 亚洲国产精品成人久久久 |