Solved

Cake Routes Not Working in Version 1.2?

Posted on 2009-07-06
2
457 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

707 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now