...

View Full Version : Best Way To Learn



savantcreative
07-29-2008, 06:01 PM
I just started working with Drupal and want to develop my own themes. What is the least complicated way to learn enough PHP to do this?
Thanks so much-

derzok
07-29-2008, 06:27 PM
As I recall, Drupal themes have very little PHP in them - mostly XML. I mean, it couldn't hurt to know a lot of php, but I don't think you need to know much aside from how to interface with their template class. Check out this guide: http://tips.webdesign10.com/how-to-make-a-drupal-theme

To answer your question, though: Download someone else's theme - a simple one. Look at all the code and maybe even make some changes to see how it effects things on the site. Maybe try a few themes - some that are more sophisticated. After you've learned to edit someone else's code, it's pretty easy to design a very basic template to go off of when making your own code. The best way to learn is through experience.

savantcreative
07-29-2008, 06:31 PM
Thanks. I have not seen that link as yet. Do you have any recommendations for learning PHP as well.
Best regards-

derzok
07-29-2008, 08:09 PM
Thanks. I have not seen that link as yet. Do you have any recommendations for learning PHP as well.
Best regards-

Well, that depends - are you familiar with any other programming language(s) at this point? Being familiar with one language of that schema makes it very easy to learn another. My first language was Perl - which provided a smooth transition into other scripting languages. Since I knew how to program in general, I just searched on the google for example scripts and language documentation. However when I went to learn Assembly it was unlike anything I'd seen before and I needed an actual guide to explain new concepts. So if you're familiar with programming already, I highly suggest "winging it" - that is, try making something simple from example scripts. Edit them, hack them, make them your own. If you're entirely new to web programming or even programming in general, I would suggest an actual guide - there are some things that it's very difficult to pick up from example.

In any case, this guide should have enough info for you to make a Drupal theme with: http://us3.php.net/tut.php

And a good source for code snippets and reference is: http://www.w3schools.com/PHP/DEfaULT.asP http://www.tizag.com/phpT/ - I use those two sites all the time - even if it's just to look up something simple that I just forgot how to do.

Good luck, my friend! Let us know if you make anything cool or need any help with the code itself :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum