views:

306

answers:

3

I haven't used Rails, but I'm somewhat familiar with it. I'm more familiar with CakePHP. I get the idea that CakePHP is modeled after Rails, and they seem to have a lot in common.

But, basically, I'd like to know if patterning itself after Rails is, or has ever been, one of the goals of CakePHP? I understand it's not a port, but is Rails the...inspiration, so to speak?

And while I'm sure the answer is probably a qualified "yes", I haven't been able to find anything on the CakePHP site(s) to support that. So...citation needed :)

+4  A: 

At it's beginning, CakePHP was very similar to rails yes. But they now both grow their own way.

It mean they have their basis in common :

The way their routing is managed as long as you don't include the rails resources.

The ActiveRecord-like for models in CakePHP even though Cake requires to define a list of loaded models.

The way they manage plugins even though with the limiations of PHP, you can't do as much things as you can do in Ruby (for example redefine a class method).

That's only a few examples among a lot of differences. But the idea is that yes they have a lot in common. But no CakePHP is not modeled after Rails.

Damien MATHIEU
Can you refer me to somewhere where this was discussed by the CakePHP developers?
mgroves
Hem I don't see why there would be a discussion about the fact that CakePHP isn't modeled after Rails. You don't discuss not to be related to something.If I said that CakePHP was modeled after rails, I'd have given a discussions. But here, that doesn't seem relevant.
Damien MATHIEU
A: 

They are alike in many things, still the guys behind CakePHP have their own vision for it and they keep making new distinctions. However if you want Rails clone on PHP then check either Yii or Akelos frameworks.

khelll
I'm not interested in a rails clone, I just wanted to know if that was the original intent of CakePHP was to bring a Rails-like framework to PHP, and if so, was that an officially stated goal?
mgroves
No it's not, that's not their ultimate goal.
khelll
+3  A: 

Asking for a link is very appropriate, so here one is: https://svn.cakephp.org/repo/whiteboard/misc/dev_meeting/Log-2005-09-09.txt. The most relevant portions are from [17:57] to [18:10]. In summary, it would seem that Cake was indeed inspired by the concepts introduced in Ruby on Rails (cf. [18:04] psychic), and has taken a more general trend towards general PHP and MVC best practices since.

Though I do not for certain know the complete answer to your question (lacking older chat logs, etc), I would guess from the comment at [18:04] pjholden that it was indeed initially modeled or patterned after RoR as you ask. The best answer could be obtained from somebody that was around since the beginning (the devs often hang out on #cakephp @ freenode.net).

michaelc
Perfect--exactly what I wanted. Thank you!
mgroves