symfony-routing Questions
6
Solved
I am starting to play with symfony4. I've just created new application and create new LuckyController. It works with routes.yaml configured in this manner:
lucky:
path: /lucky/number
controller:...
Saadi asked 15/12, 2017 at 20:35
4
so in routing.yml I have the following routes defined in order to edit and delete specific settings:
routing.yml:
settings.editDefaults:
path: settings/{id}/defaults/edit/{widgetType}
defaults:...
Mesa asked 20/6, 2015 at 17:26
1
Solved
I am trying to send a request to my custom StorefrontController on the latest Shopware 6.2.2 but I am getting the following error:
PageController can't be requested via XmlHttpRequest.
I am doing ...
Teyde asked 24/6, 2020 at 14:28
11
Solved
I start the tutorial (as newbie) and everythings works fine till:
http://symfony.com/doc/current/book/page_creation.html#creating-a-page-route-and-controller at step Creating a Page: Route and Co...
Einkorn asked 10/8, 2015 at 12:13
13
Solved
How do I get the current route in Symfony 2?
For example, routing.yml:
somePage:
pattern: /page/
defaults: { _controller: "AcmeBundle:Test:index" }
How can I get this somePage value?
Baeyer asked 17/8, 2011 at 16:51
3
Solved
I have defined a route as followed in my routing.yml file :
route_name:
path: "/dashboard#messages/{id}"
However when I ask Symfony to generate that route, I get :
/dashboard%23messages/12345...
Coss asked 28/4, 2016 at 9:40
3
Ok, so I just installed latest version Symfony 4. Run the browser after installation and a nice welcome greeting shows. All good!
Then I created a new controller using make:controller. I named thi...
Borlow asked 31/1, 2018 at 14:40
2
Solved
I got defined routes in routing.yml file
one route is:
Profile_user_profile:
path: /profile/{id}
defaults: { _controller: ProfileBundle:Users:profile }
methods: [get]
and second is:
Profile...
Armindaarming asked 21/7, 2016 at 19:19
2
Solved
I'm trying to set up an index page which would print out all the endpoints in the API (using Symfony 4).
In Symfony 2 you could get a router and via the container and then the collection of the ro...
Miscreant asked 30/5, 2018 at 12:15
4
Solved
I am working on a symfony application where my goal is no matter what page the user is on it will navigate to the locale version of the page.
For example, if the user navigates to "/" the home pag...
Hotze asked 10/1, 2016 at 21:37
4
Solved
I want to generate a Url directly in my controller. I want to user a url defined in my routing.yml file that needs a parameter.
I've found that code in the Cookbook (Routage section) :
$params = ...
Diophantus asked 18/11, 2013 at 14:41
3
Here is the simple route defined in the custom bundle
my_admin_route:
pattern: /admin/{name}
defaults: { _controller: NamespaceCustomBundle:CustomControl:login }
Above routing code will call ...
Humidify asked 22/9, 2013 at 13:5
1
Solved
I am working on symfony 2.3 project having the following routing code
just2_frontend_logincheck:
pattern: /login_check
It doesn't have
defaults:{ _controller: testBundle:User:login }
But it...
Piercy asked 1/7, 2013 at 14:6
1
© 2022 - 2024 — McMap. All rights reserved.