Questions tagged with routes

1 answer

0 votes

Asked by jbov, on 24/2/10 in

Routing first parameter in URL to an action

I have set up a blog using URL slugs. Say my domain is darn.it and the title for my first post is "I lost my shoe". My blog posts are displaying at darn.it/posts/i-lost-my-shoe. Easy as pie, er, cake.

I want to route it so the first parameter...

1 answer

0 votes

Asked by jravenscroft, on 3/3/10 in

Advanced Routing

Hi,

I have a table of organisations and I would like to route traffic using organisation names. For example, if I had the following data in my organisations table:


ID | Name
1    Organisation A
3    Organisation B
4    Organisation C

What I would...

1 answer

0 votes

Asked by dalibor983, on 16/3/10 in

Dynamic routes problem

I use ClassRegistry::init to inicialize my model class in routes.php because I create dyinamic routes from data that I collect from model find methode but after that all urls' plugins and vendor files have sql log appended, even css, js and images.

1 answer

0 votes

Asked by joshchristy, on 16/3/10 in

Having issues with custom route

I am attempting to build a catch all route for the non defined controllers and pass the action through to the new controller. I have the following:

Router::connect ('(?!accounts|pages|users)(.*)', array('controller'='sites'));

which will pass any...

1 answer

0 votes

Asked by jbourassa, on 23/3/10 in

Using Routing.prefixes and custom routes [1.3]

Is there a way in CakePHP 1.3 to have routing prefixes along with other custom routes? I'm trying to add i18n routes to my app but I can't figure out how.

This works just well without routing prefixes...

0 answers

0 votes

Asked by cosecant, on 11/4/10 in

Category Views

Following the intro cakephp tutorial to create a blog, I created a database to view, add/edit/delete businesses. This is probably very easy, but I'm stuck on a few basic concepts. Each business has a state or province associated with it, and I'm...

0 answers

0 votes

Asked by sophistihip, on 23/4/10 in

Allow flexible ordering of URL component via Router?

I'm displaying a result set in a view which I allow the user to filter, and I'd like to create conversational URLs which are easy to remember/bookmark/share. There are currently 3 fields which you can filter by. I'd like to allow the user to omit...

0 answers

0 votes

Asked by TheWorldofDan, on 24/4/10 in

Complex routing

Hi, I'm looking for some help in setting up my routes.php file with the specific requirements that I have.

Currently I'm using something like this to access the various pages on the...

1 answer

0 votes

Asked by waltervos, on 6/5/10 in

Routing rules for URL shortener

Hi,

I'm building a URL shortener with CakePHP and I'm looking for a smart way to handle Routing in this application. Short URLs will be at the top level (/as9 for example) with a few exceptions. There will be pages, like an about page, but I would...

1 answer

0 votes

Asked by dole, on 7/5/10 in

route and plugins

Hi there,

On my application I'm using a plugin, and the name of the plugin appears on address bar. How can I have in the address bar the translation word for that plugin? Is that possible to do from the routes.php file?

ty

0 answers

0 votes

Asked by maurozadu, on 5/6/10 in

Problem with reverse routing using patterns

What's the problem with this route?


Router::connect(
	'/:id',
	array('controller' => 'pages', 'action' => 'view'),
	array('id' => '[0-9]+', 'pass' => array('id'))
);

If I go to it show the page 3, so the route is working fine,...

2 answers

0 votes

Asked by mhuggins, on 12/6/10 in

Setting up magic routes for plugins in CakePHP 1.3?

I'm working on upgrading my project from CakePHP 1.2 to 1.3. In the process, it seems that the "magic" routing for plugins by which a controller name (e.g.: "ForumsController") matching the plugin name (e.g.: "forums") no longer automatically...

1 answer

1 vote

Asked by designvoid, 1 month, 1 day ago in

How do I create routes from database?

hi there,

I have (imo) a slightly tricky routing issue.

I have a store setup with various artists and the artists have their own mini stores with custom layout etc...

Now I want to route the following;

www.domain.com/artist_slug - ...

1 answer

1 vote

Asked by capo64, 1 month, 1 day ago in

'admin' => true vs 'prefix' => admin

Hey I'm setting up a route for /admin in my app, I was wondering what is the difference between setting admin = true as opposed to 'prefix' = 'admin'. It seems as though 'prefix' = 'admin' is the one that sets my functions to admin_view, etc, but...

0 answers

0 votes

Asked by andras, 1 week, 4 days ago in

paginator custom url with routes

Is anyone could help me if this is possible by paginator and routes ?

default...

<< previous next >>