[symfony-users] Re: Routing issue with dots in URL

2011-05-12 Thread Womble
Yeah that was correct, seems that this isn't the issue after all as I still get a route error. No route found for "GET /network/graph/SPAR22/xe-0_1_0.0" @extra:Route("/network/graph/{node}/{interface}", options={"segment_separator"="/"}, name="network_graph_node_interface") It seems the issue is

[symfony-users] Re: [Routing] Add the _locale in the prefix for included routes

2011-05-10 Thread winzou
I'm interested as well in this issue. Is it / Will it be possible to add core parameters in the prefix when importing bundle's routing file? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are su

Re: [symfony-users] Re: Routing issue with dots in URL

2011-05-10 Thread Christophe COEVOET
Le 09/05/2011 21:21, Womble a écrit : Thanks, any chance of doing it via the annotations? From my reading of the code, I think it is @extra:Route("/hello", options={"segment_separator"="/") but I may be wrong about the way to define an associative array for the options. -- Christophe | Stof

[symfony-users] Re: Routing issue with dots in URL

2011-05-10 Thread Womble
Thanks, any chance of doing it via the annotations? On May 9, 7:30 pm, Chris Sedlmayr wrote: > You can set the segment separators per route using the options declaration. > > routeName: >   options: { segment_separators: [/, ., -] } -- If you want to report a vulnerability issue on symfony, ple

[symfony-users] Re: [Routing] Add the _locale in the prefix for included routes

2011-05-10 Thread Christophe Willemsen
Forgot to specify : it is on Symfony2 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@

[symfony-users] Re: Routing issue with dots in URL

2011-05-09 Thread Chris Sedlmayr
You can set the segment separators per route using the options declaration. routeName: options: { segment_separators: [/, ., -] } -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed

[symfony-users] Re: Routing with random optional parameters

2011-03-11 Thread Venzon
Read this topic, can be useful: http://groups.google.com/group/symfony-devs/browse_thread/thread/5159277234e724a4# In last reply you can find modified RouteCompiler class supporting optional parameters: https://github.com/aurelijus/symfony/commit/f550ad89daed6f5e6f82dc81d2c6cca1ce5f1838 -- If

[symfony-users] Re: Routing: different character between vars

2011-01-20 Thread Gabriel Petchesi
Look into segment separators options for sfRouting: http://www.symfony-project.org/reference/1_4/en/05-Factories#chapter_05_sub_segment_separators This can be enabled for all routes or for specific ones. However I'm not sure this will work for you: /myroute/my-item-56 maybe with /myroute/my_item-5

[symfony-users] Re: Routing with sf_method question

2010-12-06 Thread Michael Smith
Not really. I am using sf1.4. I have it basically like that post and similar to the job_create: section in the jobeet tutorial http://www.symfony-project.org/jobeet/1_4/Doctrine/en/05#chapter_05_collection_route_class but without using an object route. The lead_import_upload route is always called

AW: [symfony-users] Re: Routing with fallthrough

2010-10-13 Thread Sven Riecker
egroups.com [mailto:symfony-us...@googlegroups.com] Im Auftrag von Tobias Sjösten Gesendet: Montag, 11. Oktober 2010 21:06 An: symfony users Betreff: [symfony-users] Re: Routing with fallthrough Thanks for your answer! But I'm afraid I might have been unclear. For categories I have for example '

[symfony-users] Re: Routing with fallthrough

2010-10-11 Thread Tobias Sjösten
Thanks for your answer! But I'm afraid I might have been unclear. For categories I have for example 'symfony', 'php, 'internet', etc. And for these I'd want to offer URLs like /symfony, /php, /internet, etc. Then I also have projects like 'sfSomethingPlugin' and 'sfSomeOtherThingPlugin', which I w

[symfony-users] Re: Routing problem for generate-admin with id: type string (128)...

2010-07-13 Thread Richtermeister
Take a look here: http://www.codemassacre.com/2009/04/27/symfony-12-admin-with-custom-primary-key/ Daniel On Jul 12, 9:06 am, PePe_el_Romano wrote: > Good dear group: > I am writing to see if someone has this same error occurred and has > solved, or if they are aware of it. > > Problem descrip

[symfony-users] Re: Routing, Complex Route

2010-06-27 Thread xzyfer
Hi, What is :calendar meant to be? Could you possible pass the :calendar, :month and :year variables as a single formatted token? Or better yet, if you keep the variables in a consistent order, you could define the one rule. ie. events_month_filtered: url: /events/:calendar/:month/:year par

[symfony-users] Re: routing question?

2010-06-22 Thread Richtermeister
I would not put this on the routing system. It sounds like all you need is one route that maps your urls to your product catalog action, and figure out which product to show from there. For example, the route could be: product: url: /:manufacturer-:type param: { module: catalog, action: sh

[symfony-users] Re: Routing based on environment

2010-05-28 Thread pghoratiu
As far as i know there is no support out of the box for this. I think that in this case the flexibility does not make too much sense because you want each your environments dev, staging, prod to be configured exactly the same so you can replicate bugs consistently across environments. gabriel

Re: [symfony-users] Re: Routing: frontend_dev.php vs. index.php

2010-05-20 Thread Eno
On Wed, 19 May 2010, Zackary wrote: > Thanks! That's exactly the problem. I'm new to all this, so is this > something that I should have read in the manual, or something I pick > up along the way (e.g. through bulletin boards), or is there some > other way? Its no 'secret', its documented in the

[symfony-users] Re: Routing: frontend_dev.php vs. index.php

2010-05-19 Thread Zackary
> Also, does your web server have mod_rewrite available and switched on for > your web folder? Thanks! That's exactly the problem. I'm new to all this, so is this something that I should have read in the manual, or something I pick up along the way (e.g. through bulletin boards), or is there some

Re: [symfony-users] Re: Routing: frontend_dev.php vs. index.php

2010-05-19 Thread Eno
On Wed, 19 May 2010, Zackary wrote: > I have .htaccess in my web/ directory (which is on my "prod > server"=localhost), I have not changed it. I don't know what format it > is, but its contents are given below. Are they correct? Also, does your web server have mod_rewrite available and switched o

[symfony-users] Re: Routing: frontend_dev.php vs. index.php

2010-05-19 Thread Zackary
Thanks for the response. I have .htaccess in my web/ directory (which is on my "prod server"=localhost), I have not changed it. I don't know what format it is, but its contents are given below. Are they correct? Options +FollowSymLinks +ExecCGI RewriteEngine On # uncomment the following li

[symfony-users] Re: routing creates variable value true when no trailing slash

2010-04-27 Thread Tofuwarrior
Hi Gareth, All makes sense - bit surprised retrieveByPk doesn't do this which is I guess where my question came from. Appreciate you taking the time to share your experience and approach. Thanks, Paul On Apr 23, 7:10 pm, Gareth McCumskey wrote: > My simple guess is that module/action/id tel

Re: [symfony-users] Re: routing creates variable value true when no trailing slash

2010-04-23 Thread Gareth McCumskey
My simple guess is that module/action/id tells symfony that id is a parameter with its own value defaulted to false (kinda just to show it exists) whereas module/action/id/ tell symfony that id is a parameter and there is a value of "" for it (because nothing follows the trailing slash. In short,

[symfony-users] Re: routing creates variable value true when no trailing slash

2010-04-23 Thread Tofuwarrior
Hi gareth, Thanks for replying (again!) I understand about the difference between == and === and that that must be what is causing retrieveByPK to return this but what I don't get is why id is being set to true when there is no value being passed in the url so I guess my question is about routin

[symfony-users] Re: Routing cache and memory usage

2010-03-17 Thread pghoratiu
Do you use APC opcode caching? If no enable it and also make sure you configure it properly (increase the max php file size limit that is being cached http://www.php.net/manual/en/apc.configuration.php#ini.apc.max-file-size). There is also an interesting article on optimizing PHP code (moving from

[symfony-users] Re: Routing problem with sfGuardUserProfile

2010-03-16 Thread Tom Ptacnik
How is possible that if you list a utilisateus the url is "/ utilisateurs/:id" . It should be only /utilisateurs , right? On 10 bře, 09:33, "NOOVEO - Christophe Brun" wrote: > I'm trying to use sfDoctrineApplyPlugin, I have been asked to display 2 > backend pages : one to handle administrators,

Re: [symfony-users] Re: Routing different in prod and dev

2009-12-11 Thread Alexandre Salomé
Edit your index.php file and modify the "false", attribute, set to true. It will display errors. 2009/12/9 Pancho > any solution ? > > On 29 nov, 23:08, ashton wrote: > > I'm struggling with aroutingissue. New project, and I have an index > > module, and a 'list' action and 'index' action. > >

[symfony-users] Re: Routing different in prod and dev

2009-12-10 Thread Pancho
any solution ? On 29 nov, 23:08, ashton wrote: > I'm struggling with aroutingissue.  New project, and I have an index > module, and a 'list' action and 'index' action. > > These urls work: > /frontend_dev.php/index/index (in dev) > /index/index > /frontend_dev.php/index/list > > this does not: >

Re: [symfony-users] Re: Routing System, Suffix and Trailing Slashes

2009-12-07 Thread Daniel Lohse
Care to share why you're doing this? I'd like to know. Thanks! On 2009-12-07, at 7/December, 3:14 PM, Andreas Stephan wrote: > Ok, my mistake > > there was another routing.yml in the application (the default one > resides inside a plugin) with an incorrect default url (missing the > slash a

[symfony-users] Re: Routing System, Suffix and Trailing Slashes

2009-12-07 Thread Andreas Stephan
Ok, my mistake there was another routing.yml in the application (the default one resides inside a plugin) with an incorrect default url (missing the slash at the end). So just in case anyone's interested, here is how to add a trailing slash in Symfony >= 1.2 to all your URLs: routing.yml de

[symfony-users] Re: Routing with email addresses in URLs

2009-11-07 Thread Steve Sanyal
I've been having the same issues at my site. Users have used names like john.doe or j...@live.ca and this does not work. I followed the instructions in this link: http://bluehorn.co.nz/2008/12/04/how-to-handle-dot-in-symfony-url/ But I still encounter the 404 error. I've been having to go bac

[symfony-users] Re: Routing with email addresses in URLs

2009-10-19 Thread Alexandre SALOME
And what about logs ? Do they talk of your route ? Does it works with an URL with some text instead of mail ? /unsubscribe/email/test for example. Alexandre 2009/10/19 Eno > > On Mon, 19 Oct 2009, Alexandre SALOME wrote: > > > Does it enter the action ? > > Doesn't get that far, because the

[symfony-users] Re: Routing with email addresses in URLs

2009-10-19 Thread Eno
On Mon, 19 Oct 2009, Alexandre SALOME wrote: > Does it enter the action ? Doesn't get that far, because the module and action name don't appear to get matched at all. > What does log files tell ? Which route did it matches ? > > > What kind of error do you have in development environment ? St

[symfony-users] Re: Routing with email addresses in URLs

2009-10-19 Thread Alexandre SALOME
Does it enter the action ? try adding some debug code (echo "ok";exit;) at the beginning of executeIndex method. Does it works ? What does log files tell ? Which route did it matches ? What kind of error do you have in development environment ? Stack trace ? Good luck, Alexandre 2009/10/19 Al

[symfony-users] Re: Routing with email addresses in URLs

2009-10-19 Thread Alexandru-Emil Lupu
try to md5 the email address. i guess it would be better .. and also would fix your problem ... i do not know why would you met that problem .. On Mon, Oct 19, 2009 at 8:50 PM, Eno wrote: > > > In one of our apps, we have a routing rule with an email address in it: > > unsubscribeform: > url:

[symfony-users] Re: Routing doesn't take place

2009-09-18 Thread Eno
On Fri, 18 Sep 2009, HAUSa wrote: > I have a problem with my routing.yml. My URL is still /vastgoed? > page=3, despite my routing configuration: > > estate_page: > url: /vastgoed/:page > param: { module: page, action: estate } > > This is how I build the URL: > > http://www.symfony-pro

[symfony-users] Re: Routing doesn't take place

2009-09-18 Thread HAUSa
Thx! On 18 sep, 14:27, Sid Bachtiar wrote: > First of all, don't forget to run "symfony cc" > > Secondly, try: > > > > On Sat, Sep 19, 2009 at 12:24 AM, HAUSa > > > > wrote: > > > Hi everyone! > > > I have a problem with my routing.yml. My URL is still /vastgoed? > > page=3, despite my routing

[symfony-users] Re: Routing doesn't take place

2009-09-18 Thread Sid Bachtiar
First of all, don't forget to run "symfony cc" Secondly, try: On Sat, Sep 19, 2009 at 12:24 AM, HAUSa wrote: > > Hi everyone! > > I have a problem with my routing.yml. My URL is still /vastgoed? > page=3, despite my routing configuration: > > estate_page: >  url:   /vastgoed/:page >  param: {

[symfony-users] Re: Routing Question: Optional url parameter in the middle?

2009-08-26 Thread Richtermeister
Hey Dennis, thanks for confirming. I thought about "uncategorized" as well, but I don't know what the ratio of categorized vs. categorized items will be (system is for a client), so I don't want users to have to type uncategorized into every url... I ended up using 2 routes for now. Thanks again

[symfony-users] Re: Routing Question: Optional url parameter in the middle?

2009-08-25 Thread Dennis Benkert
Hi Daniel, afaik you can't do this using one route. But without knowing more about your project, how about using a category called 'uncategorized' which will be the default one if non is chosen? This way you can use one route and urls would be like /library/legal/document2.pdf and if no ca

[symfony-users] Re: routing and slugify fieldnames

2009-07-23 Thread vinnie
OK thanks, I get it now. On Jul 22, 5:37 pm, Gábor Fási wrote: > the getCompanySlug is called camelCase, when the first letter is > lowercase, every other first letter of a word is capital. Another was > is to separate the words with an underscore, so companySlug is the > same as company_slug,

[symfony-users] Re: Routing not working in production

2009-07-22 Thread Aurélien Lansmanne
Ok, no_script_name was the answer to my problem :) So it's working now, thanks for the help ! On 22 juil, 18:42, Gábor Fási wrote: > Which was the first project you made, frontend or backend? The first > one gets to use index.php, the second one uses projectname.php, and > has no_script_name di

[symfony-users] Re: Routing not working in production

2009-07-22 Thread Gábor Fási
Which was the first project you made, frontend or backend? The first one gets to use index.php, the second one uses projectname.php, and has no_script_name disabled by default. On Wed, Jul 22, 2009 at 16:20, Aurélien Lansmanne wrote: > > Hi, > > I've recently tried my first application developped

[symfony-users] Re: routing and slugify fieldnames

2009-07-22 Thread Gábor Fási
the getCompanySlug is called camelCase, when the first letter is lowercase, every other first letter of a word is capital. Another was is to separate the words with an underscore, so companySlug is the same as company_slug, just with a different writing mode. As the route you mentioned has the cla

[symfony-users] Re: Routing not working in production

2009-07-22 Thread Aurélien Lansmanne
The .htaccess was set to RewriteRule ^(.*)$ index.php [QSA,L] If I choose backend.php instead it will work, but I don't know why the /backend.php/ doesn't appear in the URL, while the backend_dev.php does... Is it possible to change the RewriteRule depending on the controler used? On 22 juil,

[symfony-users] Re: Routing not working in production

2009-07-22 Thread Javier Mendoza
is the rewrite_module active? 2009/7/22 Aurélien Lansmanne > > Hi, > > I've recently tried my first application developped with Symfony, but > I've run intro some trouble with the routing, as it doesn't work at > all :/ > > I've got two applications in my project : The backend that has been > ma

[symfony-users] Re: routing + parameters

2009-07-21 Thread mlu...@gmail.com
THANK YOU! I had to remove the "/*" from the url. The routing looks now like this: ... search: url: /search options: { extra_parameters_as_query_string: true } param: { module: search, action: result } ... regards, Michael On 21 Jul., 11:27, Tonio wrote: > Oups, > > too quick: optio

[symfony-users] Re: routing + parameters

2009-07-21 Thread Tonio
Oups, too quick: options: { extra_parameters_as_query_string: true } On Jul 21, 11:24 am, Tonio wrote: > Hello, > > Try > options: { generate_shortest_url: false } > > from:http://www.symfony-project.org/tutorial/1_2/whats-new#chapter_3fb3b0c... > > Tonio > > On Jul 21, 10:52 am, "mlu...@gmail.

[symfony-users] Re: routing + parameters

2009-07-21 Thread Tonio
Hello, Try options: { generate_shortest_url: false } from: http://www.symfony-project.org/tutorial/1_2/whats-new#chapter_3fb3b0c857177a2b6740a5dcbc0fb8c7_routing Tonio On Jul 21, 10:52 am, "mlu...@gmail.com" wrote: > Hi! > > has anybody an idea about this? it's really urgent. thank you. > >

[symfony-users] Re: routing + parameters

2009-07-21 Thread mlu...@gmail.com
Hi! has anybody an idea about this? it's really urgent. thank you. michael On 20 Jul., 19:09, "mlu...@gmail.com" wrote: > Thank you for the feedback. > > Now it's working, but the url looks like this: > > /search/q/funny/page/2 > > Can I change this? > > Michael > > On 20 Jul., 18:14, Eno wro

[symfony-users] Re: routing + parameters

2009-07-20 Thread mlu...@gmail.com
Thank you for the feedback. Now it's working, but the url looks like this: /search/q/funny/page/2 Can I change this? Michael On 20 Jul., 18:14, Eno wrote: > On Mon, 20 Jul 2009, mlu...@gmail.com wrote: > > I think I have to define something in the routing.yml, but I have no > > idea what. >

[symfony-users] Re: routing + parameters

2009-07-20 Thread Eno
On Mon, 20 Jul 2009, mlu...@gmail.com wrote: > I think I have to define something in the routing.yml, but I have no > idea what. > > I want the url to look like this > > www.example.com/search?q=word1+word2&p=1 You could try: url: /search/* -- --~--~-~--~~~-

[symfony-users] Re: Routing : using 'requirements' for all rules

2009-06-23 Thread Bernhard Schussek
I usually use my own route classes for that purpose. You can even go as far as to prepend /:sf_culture to every route, if that helps you. class ProjectRoute { public function __construct($pattern, array $defaults = array(), array $requirements = array(), array $options = array()) { $patt

[symfony-users] Re: Routing-Rules: use sf_format only as an optional value

2009-05-26 Thread halla
> No you don't, here's the difference :) > > Yours: params:               { module: user, action: getUserMe } > Jobeet: param:   { module: category, action: show, sf_format: html } Sometimes small things can make a big difference :-) You're right - now it works great...!! Thank you very much, Gá

[symfony-users] Re: Routing-Rules: use sf_format only as an optional value

2009-05-26 Thread Gábor Fási
No you don't, here's the difference :) Yours: params: { module: user, action: getUserMe } Jobeet: param: { module: category, action: show, sf_format: html } On Tue, May 26, 2009 at 12:32, halla wrote: > > Yes, thats exactly the same way like I do it also :-) Except the > sfPrope

[symfony-users] Re: Routing-Rules: use sf_format only as an optional value

2009-05-26 Thread halla
Yes, thats exactly the same way like I do it also :-) Except the sfPropelRoute. But, like I wrote: This raises a 404 if the URL is called without suffix :-(( On 26 Mai, 12:19, Gábor Fási wrote: > This is how it's done in jobeet, day 15: > > // apps/frontend/config/routing.yml > category: >  

[symfony-users] Re: Routing-Rules: use sf_format only as an optional value

2009-05-26 Thread Gábor Fási
This is how it's done in jobeet, day 15: // apps/frontend/config/routing.yml category: url: /category/:slug.:sf_format class: sfPropelRoute param: { module: category, action: show, sf_format: html } options: { model: JobeetCategory, type: object } requirements: sf_format: (?

[symfony-users] Re: Routing requirement multiple instance of a parameter

2009-05-12 Thread BenjaM1
The last answer by Franck again: >In this case you can create an additional "fallback" route, besides > the route with the category slug, which points to the same action. > This will work in any case, without spending too much time in the > routing stuff. > > > something_without_slug: > url: /:

[symfony-users] Re: routing, link_to, culture

2009-03-28 Thread lowshoe
thanks, michael, that did it! -- lowshoe --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, sen

[symfony-users] Re: Routing to different Plugins

2009-03-27 Thread Christian Haintz
Well, I recently found the following in the Jobeet Tutorial which tells the same: "To avoid module name collisions, it is always a good habit to prefix plugin module names with the plugin name" So, i thinkg this is probably the only and the best way to handle it. Thanks, Christian On Mar 2

[symfony-users] Re: Routing to different Plugins

2009-03-27 Thread Yevgeniy A. Viktorov
But how you going to enable these modules? I mean with same name... I think it's pretty common practice to prefix module names with it's plugin name to omit such collisions. Thanks. Christian Haintz wrote: > Hi, > > I am trying to figure out how i can make a routing decision. E.g. I > have mu

[symfony-users] Re: routing, link_to, culture

2009-03-26 Thread michael.pie...@googlemail.com
I think this should be: Michael On 25 Mrz., 22:20, lowshoe wrote: > hi all, > > i have problems in using link_to in conjunction with sf_culture. > > suppose i have the following routing.yml: > > # route for articles > article: >   url:    /:sf_culture/article/details/:article_id >   param:  

[symfony-users] Re: routing for multilingual website

2009-03-05 Thread Luciano A. Andrade
i get this idea from sfW3studioCmsPlugin (solutuion E) : listen to the event 'routing.load_configuration' $this->dispatcher->connect('routing.load_configuration', array('w3sRouting', 'listenToRoutingLoadConfigurationEvent')); and on w3sRouting::listenToRoutingLoadConfigurationEvent you could pre

[symfony-users] Re: Routing URL's and image URL's from third-party application

2009-03-04 Thread joostdj
I'm still stuck on this one... Any idea's yet? On 22 jan, 13:32, joostdj wrote: > I have a third-party web application (phpBB) in which I want to > include some symfony components (to simulate the sf layout). The phpBB > app is stored in the dir 'web/forum'. I've got a working solution, but > al

[symfony-users] Re: Routing rules where the parameter to be set is not exactly what should appear in the URL

2009-02-14 Thread Tom Boutell
Hi Bernhard, Thanks for responding. You suggested: test_index: url: /test param: { module: test, action: index } test_images: url: /test/images param: { module: test, action: index, type: image } With that first rule in place, I would get the following results: test/index?type=image

[symfony-users] Re: Routing rules where the parameter to be set is not exactly what should appear in the URL

2009-02-14 Thread Bernhard Schussek
Hi Tom, It may be a silly suggestion, but why don't you just add the /test rule? test_index: url: /test param: { module: test, action: index } test_images: url: /test/images param: { module: test, action: index, type: image } On Fri, Feb 13, 2009 at 7:47 PM, Tom Haskins-Vaughan wrote:

[symfony-users] Re: Routing rules where the parameter to be set is not exactly what should appear in the URL

2009-02-13 Thread Tom Haskins-Vaughan
I may be completely off track here, but does the requirements field not use regular expressions? If it does, is there not something you can do like this: requirements: { type: (image|video)s } Tom Boutell wrote: > I spent some time puzzling over these two routing rules today: > > > image

[symfony-users] Re: Routing Rules

2009-01-29 Thread Lupu Alexandru-Emil
hi! put network_custom: url: /:custom_url class: sfPropelRoute options: { model: Network, type: object } param: { module: network, action: view } to be either the first or last route in your routing yml file. not wery sure right now. i think is better to be the last. This way, wil

[symfony-users] Re: Routing Rules

2009-01-28 Thread bpfar...@gmail.com
Also, if it helps, it works perfectly in my dev environment but not in prod. On Jan 28, 9:49 am, "bpfar...@gmail.com" wrote: > I'm trying to use a custom routing rule so that users can have a > dedicated URL that goes to a specific dynamic page.  The routing rule > is this: > > network_custom: >

[symfony-users] Re: Routing Rules

2009-01-28 Thread bpfar...@gmail.com
I'm trying to use a custom routing rule so that users can have a dedicated URL that goes to a specific dynamic page. The routing rule is this: network_custom: url: /:custom_url class: sfPropelRoute options: { model: Network, type: object } param: { module: network, action: view }

[symfony-users] Re: Routing Rules

2009-01-27 Thread bpfar...@gmail.com
Fabien, Yes, and it's fixed, thank you. I am running into another problem, is it possible to have a routing rule like this: network_custom: url: /:custom_url class: sfPropelRoute options: { model: Network, type: object } param: { module: network, action: index } So that the URL

[symfony-users] Re: Routing Rules

2009-01-27 Thread Fabien Potencier
Is your network_show_user rule before the symfony default rules? -- Fabien Potencier Sensio CEO - symfony lead developer sensiolabs.com | symfony-project.com | aide-de-camp.org Tél: +33 1 40 99 80 80 bpfar...@gmail.com wrote: > I followed the Jobeet tutorial for specifying a custom routing rule

[symfony-users] Re: Routing problem

2008-12-20 Thread Kostrowsky
For all people interested in this issue: The darn virtual host directive contained a «Multiviews» option in its directory subdirective. Got rid of it: bingo! 3 days of idleness NameVirtualHost 127.0.0.1 ServerName localhost DocumentRoot C:\yadiyada Op

[symfony-users] Re: Routing problem

2008-12-18 Thread Kostrowsky
routing.yml: homepage: url: / param: { module: indexsplash, action: index } default_symfony: url: /symfony/:action/* param: { module: default } default_index: url: /:module param:

[symfony-users] Re: Routing problem

2008-12-18 Thread Bernhard Schussek
Could it be that your .htaccess file is messed up? Could you maybe post that file, the contents of your routing.yml and that of settings.yml here? Otherwise it's quite hard to help you. Bernhard --~--~-~--~~~---~--~~ You received this message because you are subs

[symfony-users] Re: Routing problem

2008-12-17 Thread Kostrowsky
On 18 déc, 01:18, "Bernhard Schussek" wrote: > Hi, > > Is no_script_name turned on for the given environment in settings.yml? > > Bernhard Hi, Yes, it's turned on in all envs. My difficulties are getting worst: even though I commented out the language action of the index module, and got rid

[symfony-users] Re: Routing problem

2008-12-17 Thread Bernhard Schussek
Hi, Is no_script_name turned on for the given environment in settings.yml? Bernhard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googleg

[symfony-users] Re: Routing Problem with dynamic actions

2008-12-14 Thread lowshoe
thank you ant, you led me the right direction. in my code i still had named :action as :test so the following works: content: url:/:action param: { module: content } requirements: action: "company|products|contact" regards, lowshoe --~--~-~--~~~-

[symfony-users] Re: Routing Problem with dynamic actions

2008-12-13 Thread Ant Cunningham
You dont need to define action if that symbol will always be there. /:action means thats the action name since you defined the module i think it should work. did you try leaving out the action in the param entry? lowshoe wrote: > hi all, > > i'm quiet new to symfony. currently i'm fiddling ar

[symfony-users] Re: Routing Issues

2008-12-09 Thread juro
If I would have to guess, I would say "no" :) This is what I did: $symfony doctrine:generate-module frontend access Access then I renamed the module access to caccess $symfony generate:module frontend access So, I would assume that I don't have to create one Also, the routing.yml looks like

[symfony-users] Re: Routing Issues

2008-12-09 Thread Nickolas Daskalou
I've noticed some of my backend module/action URLs also now end with a .html in sf 1.2, I'd be interested to know why this is the case. 2008/12/10 noel guilbert <[EMAIL PROTECTED]> > > Hello, > > Did you add a routing rule for your new module ? > > On Tue, Dec 9, 2008 at 12:29 AM, juro <[EMAIL

[symfony-users] Re: Routing Issues

2008-12-09 Thread noel guilbert
Hello, Did you add a routing rule for your new module ? On Tue, Dec 9, 2008 at 12:29 AM, juro <[EMAIL PROTECTED]> wrote: > > Hi, > Symfony 1.2. > > After generating a crud module ('caccess' based on the 'Access' > model), everything works fine. After copy pasting the necessary fields > to anothe

[symfony-users] Re: routing question

2008-10-01 Thread Jonathan Busby
Can you place the culture routing that early on? On 10/1/08, James <[EMAIL PROTECTED]> wrote: > They talk about it at the top of the book dealing with mutliple > cultures. > > http://www.symfony-project.org/book/1_1/13-I18n-and-L10n#Text%20Information%20in%20the%20Database > > james > > > > On

[symfony-users] Re: routing question

2008-10-01 Thread James
They talk about it at the top of the book dealing with mutliple cultures. http://www.symfony-project.org/book/1_1/13-I18n-and-L10n#Text%20Information%20in%20the%20Database james On Oct 1, 2008, at 3:22 PM, javo wrote: > > Hi all, > > I have one project already online and I'm trying to rewri

[symfony-users] Re: Routing problem

2008-06-18 Thread Centerax
Thanks a lot Lee! That worked great. See ya On Jun 17, 4:44 pm, Lee Bolding <[EMAIL PROTECTED]> wrote: > You need to modify your .htaccess to skip routing rules for files > ending .rss > > Add : RewriteCond %{REQUEST_URI} !\.rss$ > > after the line with !\.html$ in it. > > On 17 Jun 2008, at

[symfony-users] Re: Routing problem

2008-06-17 Thread Lee Bolding
You need to modify your .htaccess to skip routing rules for files ending .rss Add : RewriteCond %{REQUEST_URI} !\.rss$ after the line with !\.html$ in it. On 17 Jun 2008, at 20:28, Centerax wrote: > > Hello guys. > > I've this problem: > in my dev environment I can access this url > www.d

[symfony-users] Re: routing : ability to change the module name?

2008-06-05 Thread simo
@cedric > Yes, I had a look on the plugin page and although it appears little bit abstract to me, it should do the trick! thanks @xanders > An other way to explore, I bookmark it. Thank you. On Jun 5, 3:28 am, xanders <[EMAIL PROTECTED]> wrote: > this may be what you are looking for > > http:/

[symfony-users] Re: routing : ability to change the module name?

2008-06-04 Thread xanders
this may be what you are looking for http://prototyp.ical.ly/index.php/2007/08/29/routing-international-urls-in-symfony/ have to use the included helper though. not all link_to()'s will do it automatically i dont think. in symfony 1.1 the routing factory is configurable so you will be able to j

[symfony-users] Re: routing : ability to change the module name?

2008-06-04 Thread Cédric Sadai
Well, this is only a guess and I might be wrong, but a brand new plugin seems to allow to do that: http://trac.symfony-project.com/wiki/ysfR3Plugin With it you can insert internationalizable words in any yml config file, so maybe you can have rules like that: @rule: /user/:username {module: user

[symfony-users] Re: routing : ability to change the module name?

2008-06-04 Thread simo
Thanks to all @nicolas > well, good to know. Actually, I'm starting a new project and i have some doubt on which version of symfony to use (i'm sf beginner). I've read it is better to do it using v1.1 but since there is not much documentation and most of SF plugins are not compatible yet, it's qu

[symfony-users] Re: routing : ability to change the module name?

2008-06-04 Thread Gilles Doge
Hi, On 4 juin, 07:57, simo <[EMAIL PROTECTED]> wrote: > depending on the sf_culture, I'd like to have > > myapp.com/user/myname > myapp.com/utilisateur/myname > > I haven't seen this on the doc, or maybe I 've just missed it. Many > thanks. > > simo In 1.0 you can try this tricky routing rules:

[symfony-users] Re: routing : ability to change the module name?

2008-06-04 Thread Nicolas Perriault
2008/6/4 simo <[EMAIL PROTECTED]>: > depending on the sf_culture, I'd like to have > > myapp.com/user/myname > myapp.com/utilisateur/myname With symfony 1.0 it will be very very hard (if not impossible), but with 1.1 you can create your own routing class and include i18n mapping within in. ++

[symfony-users] Re: routing : ability to change the module name?

2008-06-04 Thread Mauro Casula
I don't know if exist something like that.. I think you may use a sfFilter class and change routing depending on sf_culture. Mauro Casula Symfony-Framework.com On Wed, Jun 4, 2008 at 7:57 AM, simo <[EMAIL PROTECTED]> wrote: > > Hi list, > > I'd like to know if an advanced rule of routing allow

[symfony-users] Re: routing

2008-05-11 Thread CX
thanks for your reply... I didn't set /web to be the root of my website because I do not have access to the httpd.conf file but I figured it out at the control panel. so, it was really simple, set the root path of my website to /web and that's it. thank you! On May 11, 6:10 am, markchicobaby <[

[symfony-users] Re: routing

2008-05-11 Thread markchicobaby
There should be no need to play with .htaccess. Are you sure you configured /web to be the root correctly? Check this article: (is relevant even if you don't use suexec. Also see the book chapter 19.) http://trac.symfony-project.com/wiki/SymfonyPHPsuexec If you're still having trouble post you

[symfony-users] Re: routing looking for 'indexphp' module... not right

2008-04-11 Thread hervé
An other possible solution seems to be indicated on http://www.symfony-project.org/forum/index.php/m/42787/ changing the SCRIPT_NAME into ORIG_SCRIPT_NAME. Cheers, Hervé On 11 avr, 20:21, hervé <[EMAIL PROTECTED]> wrote: > Alright Jerry, just ran into the solution: > > add the line > cgi.fix_p

[symfony-users] Re: routing looking for 'indexphp' module... not right

2008-04-11 Thread hervé
Alright Jerry, just ran into the solution: add the line cgi.fix_pathinfo = 1 in your php5.ini Hope it helps , Hervé On 16 mar, 17:27, me_unicorn <[EMAIL PROTECTED]> wrote: > I experienced similar problems as you described above and have had 3 > sleepless nights and days since this problem occu

[symfony-users] Re: Routing parameter problem

2008-03-06 Thread Marek
On 5. Mar., 16:52 h., Marek <[EMAIL PROTECTED]> wrote: > given this routing rule: > > sf_cms_show: > url: /:sf_culture/:slug > param: { module: sfSimpleCMS, action: show } > requirements: { slug: '.*', sf_culture: "(en)" } > > and this URL: /fe_dev.php/en/test > > I get this in the log: > >

[symfony-users] Re: routing problem

2008-02-02 Thread Ian P. Christian
> The problem now is that matching is done before connecting > all the prepended routes (seems so) which ends in matching one of > the default routes from routing.yml - only these are available > for the parser in sfRouting at this point. Are you using sf1.1? If so, this is a known problem curre

[symfony-users] Re: Routing with and without slashes at the end of the url

2008-01-26 Thread Joan Piedra
James, phpleo a friend of mine blog about this topic with 2 code examples, a filter made by him and a modified htaccess for symfony. They both will make this work as expected. Take a look at the code and download link. The blog is in spanish tho. http://blog.phpleo.com/2008/01/27/redireccion-301-e

[symfony-users] Re: Routing with and without slashes at the end of the url

2008-01-26 Thread James
can you send what you used? I'd like to do the same. thanks, James On Jan 27, 2008, at 1:15 AM, Joan Piedra wrote: > Jonathan you were completly right. > I just added an htacces condition and rule to make this 301 redirect > work. > > I will send a blog post about this soon. > Thanks for poi

[symfony-users] Re: Routing with and without slashes at the end of the url

2008-01-26 Thread Joan Piedra
Jonathan you were completly right.I just added an htacces condition and rule to make this 301 redirect work. I will send a blog post about this soon. Thanks for pointing it out. On Jan 26, 2008 2:58 PM, Jonathan Franks <[EMAIL PROTECTED]> wrote: > > you can use .htaccess to remove trailing slash

  1   2   >