Martyn Bissett


Tutorials

Below is a collection of tutorials I have created sharing some useful techniques I frequently use in my web applications

PHP Tutorials

  • Database Abstraction Layer

    Shows the basic concept behind using a database abstraction layer when querying databases as well as touching on the Singleton Pattern to reduce overhead and increase performance.

  • Property Object Class

    This class can be instatiated with an ID attribute (eg. primary key) to automatically load a single row into properties. Also demonstrates the use of lazy instantiation, loading object properties only when they are needed.

  • PHP Template Files

    Similar to Smarty but without having to learn another syntax as well as maintaining access to PHP functions and object methods

  • Form Class

    Inspired but ASP.NET's View State, this class will allow you to generate form elements that will automatically select menu options or fill default values where the form has been reloaded after submission.