Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Sean Alaback
Sean Alaback
3,561 Points

Should I use an MVC model ... like Cake PHP

I got a bit ahead of myself in asking this questions ... after getting further through the PHP course I realized it was building an MCV model, just without calling it out early on.

I've done a fair bit of working on PHP outside of Treehouse, but within Treehouse it seems like there is no mention of using a MVC type model or even a framework like Cake PHP.

Is writing an entire application in PHP without such a framework right right way to go or am I going to start running into limitations down the road? Using a Cake PHP like framework is clearly more complicated, so my assumption is that it's worth is, but why?

Hayden Taylor
Hayden Taylor
5,076 Points

The only php framework I would consider is Zend. Thats my opinion though.

Sean Alaback
Sean Alaback
3,561 Points

That's a good point ... I don't even know what framework I want to use, and frankly I might even want to use Ruby on Rails. I keep trying to do Google research on this, but there are obviously about so many different camps on the issue I'd love to see Treehouse put together some course on choosing the best languages and frameworks for different applications.

Sean Alaback
Sean Alaback
3,561 Points

That's a good point ... I don't even know what framework I want to use, and frankly I might even want to use Ruby on Rails. I keep trying to do Google research on this, but there are obviously about so many different camps on the issue I'd love to see Treehouse put together some course on choosing the best languages and frameworks for different applications.

1 Answer

Andrew Showalter
Andrew Showalter
14,028 Points

Cake PHP and Zend are both good options for a framework. A very very hot framework for PHP right now is Laravel and there is also the tried and true Codeigniter that has a very light footprint and just gives you the tools you need. Just make sure you have a good grasp on PHP fundamentals before trying to use a framework.