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 124901
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T05:04:25+00:00 2026-05-11T05:04:25+00:00

I almost never hear the word CakePHP without hearing the word Rails shortly afterwards.

  • 0

I almost never hear the word CakePHP without hearing the word Rails shortly afterwards. Are these two frameworks mainly similar based on how they adhere to the MVC model or do they have other significant similarities/differences?

One of the main attractions of Rails for me is how easy it is to do Ajax. Would that also be true of CakePHP?

  • 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. 2026-05-11T05:04:26+00:00Added an answer on May 11, 2026 at 5:04 am

    CakePHP is like a cheap, bastardized ripoff of Rails. It tries to be like Rails without doing any of the stuff that makes Rails great. It kinda feels similar, I guess.

    CakePHP has an Ajax helper that does something similar to the Ajax-related helper methods in Rails, so yes, in some way, it’s also true.

    But CakePHP is really an exercise in futility: its authors wrote it so they wouldn’t have to learn Ruby, even though learning Ruby and Rails together is probably easier than figuring out the monstrous mess that is CakePHP.

    (This, coming from somebody who does CakePHP at his day job.)


    Since y’all asked, my biggest complaint about CakePHP is how it manages to totally butcher the conveniences of object-oriented programming: sure, it implements the Active Record pattern just as much as Rails does, but it makes you pass around data structures.

    I feel like any logical person would implement an ORM using faulting and dynamic loading of properties in to objects, which is exactly what ActiveRecord (the Rails library) does. The whole idea of setting a member variable called $recursive to determine which relationships to load is just plain flawed.

    Being based on PHP is pretty fatal, too; you can’t do anything with global state, you have to depend on mod_rewrite, you pay the startup penalty on every request. Sure, there’s optimizations for any environment you’re using, but still. People say Ruby is slow, but my own Rails apps run faster than their CakePHP equivalents, last I checked. I admit to being without data on this.

    Worst of all, the bugs in CakePHP just about kill it for me. I could tell any number of stories about

    • the time we spent two days figuring out why CakePHP refused to connect to the right database host
    • the time half of our pages went blank because of the memory ceiling from using too many components
    • the amount of code that lives in our AppController because every component load costs several megabytes of memory
    • the black art of massaging data structures to make XML output work correctly
    • how we traced down the blank <javascript> tag that shows up at the end of every page
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using SQL Server 2005. Our application almost never deletes without it being a
I'm wondering why the assert keyword is so underused in Java? I've almost never
I have been doing PHP stuff for almost one year and I have never
I almost never put a ++ or -- anywhere except on its own line.
A little known, but almost never used C++ feature is given a declaration: void
Currently I have some theoretically background in regular expression, but I have almost never
A teammate made the following claim: Thread.interrupt() is inherently broken, and should (almost) never
At this point, I almost never want to design a control with rich design-time
I use id's for almost all my tables, you never know when they come
I have always been taught to almost never to use goto statements in programming.

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.