0 answers
0 votes
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
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
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...
0 answers
0 votes
paginator custom url with routes
Is anyone could help me if this is possible by paginator and routes ?
default...
0 answers
0 votes
Route top level request
Hi -
I have a 1.2 app that I'm updating to 1.3. I need to send all top level requests like /foo to a controller action (/sites/view/$1) if they are not a valid controller. So in my 1.2 app I had a route like this (incredibly ugly I...
0 answers
0 votes
Router; pased parameter sets Model->id
I'm having trouble using the Router::Connect.
my urls contain language and user-id before the controller and action.
like so: /en/3/albums/view/6
explanation: you have set language EN and you are viewing album 6 for user 3.
the used router...
1 answer
0 votes
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
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
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
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
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...
1 answer
0 votes
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
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
1 answer
1 vote
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;
1 answer
1 vote
'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...
1 answer
0 votes
Upgrading to 1.3 - Core.php and Routers.php
I am migrating my app to cake 1.3 from 1.2.*. I have tried following the migration guide but I am having weird issues with my routes and even core.php.
Core.php: I do not see any debug messages. I have it set to 2 and nothing...
2 answers
0 votes
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...