Class loading

  1. A simple class loader for PHP

    2011-06-09

    While playing around with the CodeIgniter library on my LAMP server, I found a need for automatic loading of classes. CodeIgniter is a neat little thing that handles loading of MVC parts, but has no real support for helper or simple data classes. I wanted my models to retrieve data from the database through entity classes by using an ORM library (Doctrine). And like in a typical JPA/Hibernate setup for Java, pass those entity objects to the view. [...]