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

PHP Drupal Basics Writing Modules Process Forms in a Module

I dont get it (Drupal). How is this making PHP any easier?

The calculate sum module has 54 lines of code and multiple functions to make a simple form and handle the submission of it. How is this making PHP any easier? I could have done the same thing in much less code and not having to learn Drupal specifics and unique names for things. To me it seems like a lot of effort to create something that is fairly simple in PHP.

1 Answer

Dekel Zoaretz
Dekel Zoaretz
14,864 Points

I think that like every program (like CMS in this projext ) there are pros and cons. In this type of PHP project the idea is to let someone else to manage his site without your intervenance. That said, I agree with you that this kind of function can take a four/five lines of function but framework let you work the way the framework wants and that is the con of this drupal.