I have some controllers I want to default to table and not index, as they present better in a different format than my index pages use. How can I change this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Got it. For others:
The file
/app/config/routes.phpcontains the routing configuration, and default action can be changed there. E.g.,This will send a request to app/pages/ to the “display” action, not the usual “index.”
More here: http://book.cakephp.org/view/46/Routes-Configuration#!/view/46/Routes-Configuration