Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

PHP Drupal Basics Writing Modules Process Forms in a Module

Laurie Addoms
Laurie Addoms
9,279 Points

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.