Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 279619
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:02:52+00:00 2026-05-12T05:02:52+00:00

I´m starting to developing with cake php. I have designed a DB model and

  • 0

I´m starting to developing with cake php. I have designed a DB model and baked my mvc´s.

Now i want a index / home site. This site should be an overview of possible actions which a user can do.

Should I use an app_controller for that or route to an existing controller even if that controller has nothing to do with a home site, or should I use a separate controller with no model just for displaying the overview and edit the route of / to point at this new Home Controller?

Whats the best practice for that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T05:02:53+00:00Added an answer on May 12, 2026 at 5:02 am

    Your question is a little vague to me. I am going to assume that by “site” you mean “page”.

    If by “overview of possible actions which a user can do” you mean a static page with links, then use the provided PagesController, and create a view at app/views/pages/home.ctp.

    If by “overview of possible actions which a user can do” you mean a dynamic page with links and data, then create a controller action to feed the page the correct data.

    Where that controller action goes should depend on where the data comes from.

    If it lists the latest posts, create a PostsController::home() action.

    If it needs data from the User model in order to determine what to display, then create a UsersController::home() action.

    Finally, if you are mixing data from many models with no clear winner, or you are actually creating a home “site” instead of a “page”, create a HomeController or DashboardController.

    Read this post by teknoid for a nice succinct way of loading in arbitrary models when needed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 363k
  • Answers 363k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Use a private variable with a setter. In the setter… May 14, 2026 at 3:17 pm
  • Editorial Team
    Editorial Team added an answer Simply an IE bug. I don't think there are active… May 14, 2026 at 3:17 pm
  • Editorial Team
    Editorial Team added an answer Create a new instance of DBContext the second time. But… May 14, 2026 at 3:17 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.