symfony-routing

    0熱度

    2回答

    我想將一些新的Symfony3應用程序集成到現有的網絡空間。在我的webroot/html中,每個應用都有自己的目錄。這些應用程序中的每一個都可以是任何東西 - cakePHP,自定義PHP,無論如何。並且每個都通過像localhost/appname這樣的URL訪問。這種結構不夠靈活,我無法再向URL添加URL模式或類似的東西。 因此,我將Symfony3安裝在/ symfony中,它是/ ht

    0熱度

    1回答

    我無法創建正則表達式匹配的URL蛞蝓[AZ](「字」由單破折號分開)是這樣的: wordone-wordtwo-wordtree 在路線: csa_platform_category: path: /c/{slug} defaults: { _controller: CSAPlatformBundle:Category:index } requirements:

    0熱度

    1回答

    我有以下路由定義 my_route: path: /actual-path/ defaults: _controller: MyBundle:MyController:detail id: application_id requirements: methods: GET id: \d+ 控制器需

    0熱度

    2回答

    正如標題所示我有這個問題,如果我嘗試到達以下網址: http://app.local/sf/customer-first-progam-level 這是我有: 應用程序/ routing.yml中 quote: resource: "@QuoteBundle/Controller/" type: annotation prefix: /sf QuoteBun

    0熱度

    2回答

    我是Symfony 3的新手。我在AppBundle本身創建了控制器文件。沒有創建新的包。現在我試圖路由一個新的頁面,它會給出一個錯誤。這就是我所做的。 在src\AppBundle\Controller\Patient\PatientController.php namespace AppBundle\Controller; use Sensio\Bundle\FrameworkExtraB

    2熱度

    2回答

    在一個實體中,我用DoctrineExtension定義了一個slug,我在我的href中使用它。但是...我有一個路由器和/或ParamConverter的問題。 在我的控制器: /** * @Route("/{slug}", name="strain_view") * @ParamConverter("strain", class="AppBundle:Strain", options={

    1熱度

    1回答

    正則表達式不是我的力量,我希望對此有所幫助,如果它是可能的話: 我需要創建遞歸匹配RESTful路徑的正則表達式。目的是創建一個與此正則表達式匹配的Symfony路由。這裏是什麼,我的意思是REST風格的路徑的一些例子: /resources /resources/123 /resources/123/children-resources /resources/123/children-re

    0熱度

    1回答

    我試圖在路由中實現語言環境。 我可以得到它像host/en/page & host/fr/page這個片段的工作: #routing.yml app: resource: "@AppBundle/Controller/" type: annotation prefix: /{_locale} requirements: _locale: n

    0熱度

    2回答

    我有一個現有的Web應用程序訪問MySQL數據庫。我將這個應用程序移植到Symfony。新的應用程序必須使用舊的數據庫,因爲我們無法一次移植整個應用程序,即舊的和新的應用程序正在訪問同一個數據庫,並且應用程序正在同時運行。 舊的應用程序有哪些必須要移植一個簡單​​的CMS功能: 有一個表page它代表一個頁面樹。每個頁面都有一個slug字段。 URL路徑由表示標識頁面節點的路徑的那些段落組成,例如

    1熱度

    1回答

    我試圖使用symfony和angular 2構建應用程序,我想知道是否可以將所有路由重定向到一個特定操作exept uri,以/ api前綴開頭。 在此先感謝。