Refactoring: controllers are now classes too
- Creating a Context class, containing all relevant information (current user, session, current url, current workspace)
- Creating a Controller class, the old procedural code belonging to the handleRequest method
- Adding a SPL autoloader, asks Smarty to stack its own autoloader
At this stage, we have now an engine offering a clean interface and ready to support applications.