0
votes
1answer
16 views
Is it possible to use route parameters for the default controller in Symfony2?
I'm having quite a few bundles whose routing rules I don't want to include by hand in my main routing.yml, so I'm looking for a way to define a route that is then forwarded to a controller depending ...
0
votes
1answer
21 views
FOSRestBundle routings - error when adding parent option
I have an issue with FOSRestBundle.
I am trying to use the parent option in my routing and I get the following error
[InvalidArgumentException]
Every parent controller must have ...
1
vote
1answer
56 views
+100
Custom i18n routing in Symfony
I'm using JMS\I18nRoutingBundle, Gedmo\Translatable and Gedmo\Sluggable. Routes with default locations works as well, but other locales works without translated slug. My i18n routing have following ...
0
votes
1answer
40 views
Routing in Symfony2: optional parameter en four urls for one route
In my Symfony2 app I would like to make four urls possible with one route:
a-lot-of-other-stuff/report/-20 (negative number)
a-lot-of-other-stuff/report/40 (positive number)
...
3
votes
2answers
46 views
How to use absolute path in twig functions
I have a application with symfony2 (2.2) when i want to send a mail i'm having troubles with the paths all are relatives path and obviously arn't working from emails
for render the the paths i'm ...
0
votes
2answers
27 views
Symfony2 - How to render a view from another controller
I have two controllers, homepage and Security.
In the homepage, I am displaying one view and in the security, I am doing some things, and one of them is the email address validation.
What I would ...
0
votes
1answer
47 views
Symfony2: add routes from my bundle
I created a bundle wjb/ImageBundle but I would like to load its routes without modifying app/config/routing.yml. From FOSRestBundle and few more, I see it is possible but I coudn't figure a way how to ...
-1
votes
1answer
73 views
Variable from one controller to another
I have Client controller. In client controller I insert data into DB. After inserting, I need to pass name and id of last inserted to controller invoice
in Client contorler I can get data by:
...
0
votes
1answer
37 views
How to pass arguments to controller from route in Symfony2
I'm working on a Symfony2 project and am trying to figure out how to pass parameters from the route configuration to the controller. I know I can configure default values in the route configuration, ...
2
votes
1answer
25 views
Route generation or chooser in tinymce bundle with symfony2
I'm working on sample application written with symfony2 and I want to add some cms funcionality (standard manage page entities) and the problem is routing in tinymce wysiwyg editor for links. It will ...
0
votes
2answers
42 views
@Route directive not working--what am I doing wrong?
I used composer.phar to install Symfony 2.2.1 standard edition, and then I used the app/console utility to generate a "ClientBundle".
I'm trying to define my routes using the @Route annotation. ...
0
votes
1answer
39 views
Convention-based routing in Symfony2
I'm trying to learn learn how routing works in Symfony2, and so far everything I've read has examples like this:
blog:
path: /blog/{page}
defaults: { _controller: ...
0
votes
1answer
39 views
Symfony 2 optional route url parts (wildcard?)
In Symfony 2.2.1 Is it possible to create route like:
/search/category_ids/1,2,3,4/subcategory_ids/32,23,9/language_ids/10,23,5 ...
where every url part is optional, for example user could visit ...
1
vote
1answer
42 views
How to set default route parameter from session?
If I have a batch of routes looking like this:
/{location}/catalog
/{location}/search
etc.
Session always has "location" attribute (alias to auto-recognized user location, e.g. city). So, to ...
0
votes
0answers
13 views
Access routing options in kernel listener
I build a kernel listener some time ago, to redirect a user to a certain language.
There are several pages, that do not have a translation and where the user should not be redirected. As i use ...