久久久久久久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>

                          • 主站蜘蛛池模板: av网站免费观看 | 久热久热 | 国产精品一区二区在线播放 | 四虎永久免费影院 | 人人做人人澡人人爽欧美 | 欧美一a一片一级一片 | 国产午夜精品一区二区三区四区 | 一区二区三区小视频 | 国产精品久久久久久福利一牛影视 | h网站在线观看 | 日本一区二区视频 | 美女一区二区在线观看 | 欧美午夜一区二区三区免费大片 | 国外成人在线视频网站 | 在线亚洲人成电影网站色www | 91麻豆精品国产91久久久更新资源速度超快 | www.久久久.com | 久久久久久国模大尺度人体 | 人人99 | 国产小视频在线 | 欧美一区二区在线观看 | 久久精品视频播放 | 国产精品一区二区三区在线 | 成人在线视频免费看 | 日韩成人免费中文字幕 | 99视频免费播放 | 成人av在线播放 | 精精国产xxxx视频在线 | 色天堂视频 | 亚洲码欧美码一区二区三区 | 黑人精品欧美一区二区蜜桃 | 一区二区精品视频 | 91视频导航 | 中国一级特黄真人毛片 | 色五月激情五月 | 91国内精精品久久久久久婷婷 | 亚洲成人一区 | 久久综合色综合 | 亚洲天堂一区二区 | 国产精品a一区二区三区网址 | 久久精品免费看 |