Tuesday, June 17, 2008

SproutCore - A MVC Framework for Javascript

I've really been enjoying CakePHP more and more, and have just starting delving into the AJAX helper more and implementing that into some new sites. However, there is only so much functionality built into CakePHP, and you'd probably have to integrate one of the other AJAX frameworks out there (like jQuery, etc) to get something more 'Desktop-like'.

But after monitoring Apple's just finished WWDC and hearing about SproutCore, I dropped by the site to see what it's all about. It looks like Charles Jolley has put together a really nice framework that Apple has added to and leveraged for their new Mobile Me service.

From reading the site, though, it seems as though Ruby on Rails is required to get the framework installed. I'm hoping someone will put together a nice and easy way to integrate SproutCore with PHP (and hopefully with CakePHP) so you could leverage both frameworks together.

If anyone does, drop me a line.

4 comments:

Kris Wallsmith said...

I'm also from the PHP world and interested in SproutCore... looking into how integration may be possible now.

Miller said...

I'm looking for the same. I may end up playing around with it some to see if I can figure it out, but a CakePHP 1.2 example would be fantastic.

I'm not using to Javascript that requires another language to develop with...it's something of a deterrent.

Tantaman said...

Guys...
Sproutcore is independent of the back end... It doesn't require rails or ruby or anything else to run. You do, however, need to use ruby to write a sproutcore application, but once it is written it is compiled down to static html, css and js files that can run with any back end you desire as it communicates with the backend via get and post queries.

http://www.sproutcore.com/about/ :
"Once a SproutCore application is loaded into your web browser, it communicates with your backend server using Ajax. You can literally use SproutCore with any backend technology that you want. As long as it can be accessed via HTTP, your SproutCore app will be able to talk to it."

Please read and research before you write...

Unknown said...

While you don't need ruby for a production environment, you do need it for intial development. I'm actually working on a cake solution so that all you'll need is the javascript/css source for for development. I've got a controller that does the framework JS rollup, and am working on a helper that will make it very easy to develop the sproutcore app inside of cakePHP.