routing

Choosing routing.yml based on user culture?

In my Symfony application I would like to choose the routing.yml based on the current user's culture; 'en' => routing.en.yml 'no' => routing.no.yml and so forth. Any suggestion to how this can be done? Edit: I am not trying to do i18n this way - I use Symfony's built-in methods for that. I simply want "static" urls to reflect the us...

Help with rails routes

I seriously cant understand why this is so hard... I have some experience with other mvc frameworks but always heard rails was the easiest to code in.... right now I cant even get to my controller methods if i want to. I used scaffold to creat 'student' which automatically created for me the controller, model and views for basic CRUD.. ...

Rails app in different language?

I want to create my app using spanish controllers/methods. can I use scaffold? scaffold created methods like new, create, edit, etc I want to change those to be nueva, crear, editar, etc when I do that the app breaks because of REST routing rules whats my best approach to this? please help. ...

Why do route decorators break routing in ASP.NET MVC 2?

I have a web application using MVC 2 Preview 2 and after all routes are registered, I need to wrap each route in a decorator further down the chain. The problem is, doing so breaks routing. What ends up happening is the GetVirtualPath method will match falsely for other areas in the application (I'm using single-project areas). It doesn'...

How to design table-driven routing engine

I'm trying to design a table-driven routing engine for a contract management application that will compute appropriate reviewers and approvers given a set of input criteria. My platform is Sharepoint with K2 and InfoPath 2007 (I'm working on the InfoPath form, a colleague is working on the K2 workflow). The results will be used by K2 to ...

Minimum cost broadcast routing

Is there any method where we can get a minimum cost broadcast routing scheme without using the spanning tree algorithm? Any references to guide me on this will be of great use to me. ...

How can I clean up Symfony admin routes?

My backend URLs look like this: mysite.com/backend.php/blog I'd like to change it to: mysite.com/backend/blog Technically this isn't limited to admin apps, as Symfony grants every application two front controller scripts. But I hate having the script name in URLs and as such I'd like to change it. Is this possible? Thanks in ad...

ASP.NET MVC Routing with Default Controller

For a scenario, I have a ASP.NET MVC application with pages that looks like follow: http://example.com/Customer/List http://example.com/Customer/List/Page/2 http://example.com/Customer/List http://example.com/Customer/View/8372 http://example.com/Customer/Search/foo/Page/5 These pages are achieved with following routes in Global.asax....

Subdomain Routing Rules (using chaining) Broke after upgrading to Zend Framework 1.9.5, but only for the subdomain itself, not for pages in the subdomain

I asked a similar question months ago (see How do I write Routing Chains for a Subdomain in Zend Framework in a routing INI file?), on how to write chaining rules in an app.ini format. The answer to this question worked wonderfully! Now, however, I have upgraded to the latest version of the Zend Framework 1.9.5 (I needed to upgrade for a...

Help with rails routes

Im having a little trouble setting up routes. I have a 'users' controller/model/views set up restfully so users is set up to be a resource in my routes. I want to change that to be 'usuarios' instead cause the app will be made for spanish speaking region... the reason the user model is in english is cause I was following the authlogic...

Issue with Url Routing(System.Web.Routing) 3.5 in Godaddy...(non-MVC App)

Hi, I am using System.Web.Routing namespace in Asp.Net 3.5 non-mvc app. Its working perfect in local machine but I tried deploying in godaddy server it doesnt work Does anyone has experiece with them ? Thanks in Advance.. Deepu ...

Can controller names in RESTful routes be optional?

With a standard map.resource routing mechanics and several nested resources the resultant routes are unnecessarily long. Consider the following route: site.org/users/pavelshved/blogs/blogging-horror/posts/12345 It's easy to create in routes.rb, and I'm sure it follows some kind of beneficial routing logic. But it's way too long and ...

Can I map resources to a different controller?

I have my resources already defined, but a client wants to change the names of the URLs to match their brand (e.g. something like "catalog" when the resource is currently "products"). Can I specify a different controller name with a resource so I can get all the built-in resources functionality without having to actually rename the cont...

Multiple Nested Routes, is there a better way to do this?

So In my rails app I have two resources (rentals, and reservations) which belong to a user. This is the code in my routes.rb to set up the nested routes. map.resources :users, :has_many => :reservations, :shallow => true map.resources :users, :has_many => :rentals, :shallow => true map.resources :rentals, :only => [:index] map....

subdomain routing to multiple controller issue

I have a site: www.mydomain.com where we have administrative controls hidden away from normal customer view. I would like to only access the administrative features under a subdomain such as admin.mydomain.com. I can ensure that any requests to an administrative feature has to have admin in the subdomain, but how can I make sure that i...

Using rails 'vendor' folder for third party plug-in

I have a small third party flash application I'd like to incorporate in my rails app, but I am struggling to get it working properly. I believe it belongs in vendor opposed to lib, correct? Let's say I want the flash app to be loaded in my users controller in the signature action, how would I go about loading it in there. The app has m...

Adding extra params to rails route resources

What I want to do seems simple, but might not be "proper" let's say I have an image resource, and I manipulate the image based on the url. In the url I want to specify it's size and whether it's grayed, colored, or dimmed or some other condition. currently I have a number of named routes that look like this. map.gray_product_image "im...

How to configure routing for a java web app

Is there an easy way to rout all requests (except a few specific cases) for url "mysite/" to path "mysite/index.html?" Is it possible to do it only by editing web.xml file? ...

Zend Framework, routing problem with IE8

I have a strange problem.The routing of my zend framework site is ok with Mozilla, Chrome, Safari, but isn't with Explorer. For example: in Mozilla this helper linkTo(null,'nameController');?> generate a link to localhost/siteName/nameController/indexAction and it is ok. But with Explorer the same helper generate a link to: localhost/nam...

What is the appropriate route design for this ASP.NET MVC application?

My url http://server/region/section/item Now if someone goes to http://server/us/ I want to display a page to choose a section if someone goes to http://server/us/beer/ I want to display a list of all beers. My question is should I just have 1 route with defaults and then return different views depending on how much the URL is filled i...