News Feed
Sections

News Archive


Community Events






Don't see your event here?
Let us know!


feed this:

Stefan Priebsch's Blog:
Turning errors into exceptions
0 comments :: posted Wednesday April 30, 2008 @ 12:53:35
voice your opinion now!

In a recent blog entry Stefan Priebsch shows how to take an error thrown by your script and turn it into an exception (to make things like catchable fatal errors).

While I would personally prefer an exception to be thrown in the first place, it is pretty easy to convert errors to exceptions in PHP.

His example is pretty simple - you set a custom error handler in your script that pulls in the error information and tosses an exception based on the error number the handler is given. Then you can use the try/catch method to see if your script has tossed an exception of the fatal error type. Nice simple solution to handle an interesting little problem.

tagged with: error exception convert try catch fatal errorhandler


Developer Tutorials Blog:
Designing and Coding a Wordpress Theme From Scratch
1 comment :: posted Tuesday April 29, 2008 @ 11:17:18
voice your opinion now!

The Developer Tutorials blog has posted a series they've worked up to show bloggers out there running WordPress how to create a custom theme from scratch:

In this multi-part series I'll detail how to create and design a Wordpress theme from nothing more than your imagination using Photoshop, CSS, XHTML and PHP.

Here's the list so far:

  • Part 1 - getting the tools and an overall layout idea
  • Part 2 - splitting it up to make the layout parts
  • Part 3 - converting the Photoshop template to XHTML
  • Part 4 - cleaning up the XHTML and doing some styling with CSS
  • Part 5 - how to preload some images with Javascript to make the page load faster
  • Part 6 - creating the WordPress-specific markup
  • Part 7 - working up the PHP functionality
  • Part 8 - integrating PHP into the template
  • Part 9 - marking up the "framework" of the site (header/footer/sidebar)
  • Part 10 - adding additional files like a links page and changing the posting template
  • Part 11 (?) - deploying the theme out to the public view
tagged with: series tutorial wordpress photoshop xhtml convert layout theme custom


conference zendframework developer database package job application PEAR cakephp example ajax release code security PHP5 releases book mysql zend framework

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework