This site is archived.
Skip to Content

Functional Fips: PHP basics for themers

Your session in a few words: 
All the PHP you ever needed to know to make a really awesome theme.
Date: 
September 3, 2009 - 09:00 - 09:45
Room: 
David Weill
Track: 
User experience and design
Session Type: 
Lecture
Level of expertise: 
Beginner
Language: 
English

There are a lot of theme snippets available in the Theme Guide. There is not, however, a lot of information about PHP which is the language that makes up these snippets. If you're tired of copying, pasting and praying and are ready to understand some of the magic behind those snippets, this session is for you!

In this session you will learn how to manipulate and master:

  • The very, very basics of PHP and the popular theming engine PHPtemplate
  • Variables and tpl.php template files
  • Arrays and objects and other crow-bar-worthy data containers
  • The really scary looking stuff that's in the mysterious file template.php

Examples will be pulled from the Drupal.org Theme Guide as well as the wildly successful book on theming, Front End Drupal (co-authored by Emma Jane and Konstantin Kaefer).

Slides are now available

For those of you who want the slides, here they are!
http://www.slideshare.net/emmajane/functional-fips-learning-php-for-drup...

Additional PHP tutorials are available from:
http://devzone.zend.com/article/627
Note: these are NOT Drupal-specific and "echo" means "print." The best tutorial is the one you understand. Feel free to search lots, read lots and abandon the ones which don't make sense!