Solved

Cake Routes Not Working in Version 1.2?

Posted on 2009-07-06
2
462 Views
Last Modified: 2013-11-24
Experts I'm having a problem with routing in Cake PHP here's the scoop:
Sorry but the links below don't show as  I had to put the site back to an operational state.
When I put in the URL: http://www.beatlesarama.com/songs/index/
The page comes up perfectly.

I want this page to display as my index page.

I created the route as follows:

Router::connect('/', array('controller' => 'songs', 'action' => 'display', 'index'));

When set this way it doesn't give any erros but the page does not show. The default.ctp shows but the content that is supposed to show does not.

if you go to the site as http://www.beatlesarama.com you will see what I mean.

Thanks in advance for your expert advice.

0
Comment
Question by:barnent1
2 Comments
 
LVL 3

Accepted Solution

by:
Siridivi earned 500 total points
ID: 24799923
It's been a while since I've done CakePHP programming, but I think you need this:

Router::connect('/', array('controller' => 'songs', 'action' => 'index'));
0
 
LVL 1

Author Closing Comment

by:barnent1
ID: 31600340
Thanks that wss exactly it. After reviewing the documentation I was trying to call a controller function that did not exist.

Thanks for the help..
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question