0 answers
0 votes
What is the best practices using a modular and scalable application in CakePHP?
I'm planing to do a medium website that has: multiple modules that can be used on various layouts, ajax, dynamic routing from database and is multilanguage.
Now The way I'm thinking about is like this: I set the router to send every url to a Core...
2 answers
-1 votes
Prefix Routing from Form Submission
I'm having a problem with prefix routing from a form submission.
I have several prefixes setup for my site (not just admin), lets say
prefixa, prefixb, prefixc....
I'm method for this form is "get". When submitting the form the action
is...
1 answer
0 votes
How to parse extensions in Router?
I'm trying to parse URL like this:
/shops/4/eng/categories/22,skin-care.html
So I put this router rule:
Router::parseExtensions('html');
Router::connect(
'/shops/:shop_id/:locale/categories/:id,:slug',
array('controller' => 'categories', 'action'... 1 answer
0 votes
Default routing not working
Hello,
I have a simple question, kinda lame actually, but never happened before. I've baked two models/ controllers/ views, users and roles, and when trying to access them I get 404 Not found (The requested URL /xxx/roles/index was not found on...
2 answers
0 votes
How to route IT in one word?
In my application, I want to create d a IT controller.
the structure I'd like to have is:
IT Controller file name it_controller.php,
IT Controller class name:
class ITController extends AppController{
}
the url will be...
4 answers
0 votes
Admin routing, http://website.com/admin won't go to posts/admin_index
I have admin routing enabled. How can I set routing, to make http://website.com/admin go to posts/admin_index?
I've got this:
Router::connect('/', array('controller' => 'posts', 'action' => 'index'));
But it doesn't seem to work. I get this error...
1 answer
0 votes
Automatically carry-over/set Named Parameters Unto Created Links
Hi,
Let's say I have the following links and redirects for the first landing pages of my site:
// for a link:
echo $html->link('Some Link', array('controller' => 'home', 'action' => 'index', 'country' => 'uk'));
// example for a... 1 answer
0 votes
Dynamic Routing
Is there any way of setting up dynamic routing?
I'm working on a site which is going to have a lot of static text pages, but because I want to give my clients the ability to edit the pages themselves, I'm going to let them do this via a TinyMCE...
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
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...
0 answers
0 votes
1 answer
0 votes
Tree model nested routing howto
If I have a table called categories using mptt and the name field is unique for every parent_id (ensuring no duplicate category names at any level) how would I implement a route like this:
/categories/cat1/subcat2/subsubcat3/sub...catx
Im using 1.3...
2 answers
0 votes
Routing for pseudo-subsite
Hi
I'm creating a site where users can sign up for a subsite. I was thinking it should be fairly straight-forward to setup the routing but it's proving to be more difficult than I first thought. The complication I'm having is probably related to...
0 answers
0 votes
Userlogin for a controller with admin-methods
Hi, I'm trying to setup a userlogin for a controller, that only has admin-methods for index, add, view etc.
After typing the correct credentials I am not logged in and instead led to the root of my app.
If I try the same setup with regular...
1 answer
0 votes
When i changed default routing "Error loading images. One or more images were not found."
i am using jquery skitter slide show plugin in my "/posts/home" page //this is my home page
i changed default route to following
Router::connect('/', array('controller' => 'posts', 'action' => 'home'));
Problem is slideshow not show images after...
0 answers
0 votes
Route for editting profile
I have the following route:
Router::connect('/account/profile', array('controller' = 'users', 'action' = 'profile'));
When I am on /account/profile and save without having a first name it shows an error on the page and the url in the browser has...
1 answer
0 votes
CakePHP is interrupting images
0 down vote favorite
Hi,
I am using fckEditor as text editor. When i upload images thru it the images were uploaded to app/webroot/fckeditor/images.
And when they're embedded it looks like
/fckfiles/SalmonSashimi.jpg
Until now it looks right.
But the...
1 answer
0 votes
Prefix in paginator->numbers
Hello,
I have the following situation:
In routes I have this route - Router::connect('/:access/:controller/:action/*', array());
Prefix access has value public and private and all links in website are with public/private before controller name. The...
1 answer
0 votes
Why are my forms going to my admin routing addresses?
I have a form which I've set to go to the carts controller and the add action. I did not specifically tell it to send to the admin route at all. But instead of an action of /carts/add, I'm getting /admin/carts/add. This seems to be a common...






