2007-12-28

Web predictions for 2008

What will be popular on web in 2008?
  • semantic apps (ish ?)
  • mobile web, mobile office, mobile web apps, services
  • behavior monitoring, better personalised ad targeting
  • OpenID
  • content recommendation
  • facebook platform
  • distributed social networks
  • open platforms?
source: various and 2008 Web Predictions - ReadWriteWeb

2007-12-15

Bootstrapping PHP application

What?

Bootstrapper is a single access point (index.php script located in the web's document root) of the web application. Its purpose is to handle all incoming requests by 1. setting up the application environment, 2. routing the request to the correct action controller and 3. dispatching it.

Why?

Easy application configuration (all that is common is in single bootstrapper file).

How?

Setting up the application environment
  1. set up php environment if necessary (error reporting, include paths,...)
  2. set up class loader (and register is as autoloader within php)
  3. load common classes
  4. load configuration into registry
  5. setup db and store db handle into registry
  6. set up caching
  7. set up front controller
  8. set up router
  9. dispatch front controller
Routing the request to the action controller
  1. set up router
Dispatching the request (dispatch loop)
  1. dispatch front controller

Links