Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Cake Routes Not Working in Version 1.2?

Posted on 2009-07-06
2
Medium Priority
?
475 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 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses

885 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