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

  • SEARCH
  • Home
  • 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 7188233
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:01:45+00:00 2026-05-28T19:01:45+00:00

So I just installed CakePHP and I’m VERY excited to work with it. However,

  • 0

So I just installed CakePHP and I’m VERY excited to work with it.

However, the MVC model is BLOWING MY MIND. I looked at the docs and am very impressed, but completely baffled at what to do.

The tutorials and docs show creation of applications that reflect database interaction and etc, but all I want to do right now is create a simple index page. I’ve already coded it (html, some style sheets, and basic javascript), but I would like to convert it to fit with the CakePHP model.

Does anyone know of good tutorials to begin the process of translating pages to fit the CakePHP model? Also, I would like to start translating my mindset into the MVC model.

  • 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-28T19:01:47+00:00Added an answer on May 28, 2026 at 7:01 pm

    Sure. Here’s how to roll your simple index page live without messing around with models, tables, etc:

    1. Create a view -> /app/views/pages/index.ctp and plop in your markup, etc.
    2. Place your stylesheet in app/webroot/css/whateveryouwanttocallit.css.
    3. Pull up app/views/layouts/default.ctp and look for a line in the head that starts with Html->css(…); ?> – change it to echo $this->Html >css(array('whateveryouwanttocallit')); – note, no filetype .css on that, just the name. (Also, you can keep the default stylesheet if you want, just add stylesheets to the array to load them in the layout.)
    4. Browse to localhost/index and you should see your static page.

    Cake rolls with a single default controller already in place – the PagesController. It does not use a model (the $uses = false; property.) You can use to that property to disable models if you just want a controller, no database / model functionality. The pages controller and the Cake router are set up to route any request to cake’s webroot/:action through the Pages controller without needing to specify /pages/:action. Meaning, localhost/index will route sneakily through pages. (So will localhost/pages/index, but I digress.)

    That should get you pointed in the right direction. HTH 🙂

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

Sidebar

Related Questions

I have just successfully installed CakePHP and I see that I can edit the
I just installed Ubuntu 8.04 and Eclipse. I made a very simple Hello World
i've just installed CakePHP and I'm pretty new with Mac,Shells and Terminal.. Cakephp is
Just installed django-db-log module and trying to make it work properly. 'python manage.py syncdb'
just installed asp.net mvc 2, where are the new .dll's?
I just installed a SSL certificate on my website that uses CakePHP and now
Just installed EE everything seems clear however I can't seem to find a solution
Just installed the latest SDK for iPhone 2.1. When I go to File ->
Just installed AnkhSVN and I see the equivalent of svn up but I'd prefer
Just installed the SDK and ADK. while updating, it gives the following error: unexpected

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.