Out of Mind

Do less, and then do even less

November 10, 2010 at 9:32am

Home

Minium: Simple Example of Lithium as a Microframework

My post yesterday has been viewed 362 times. Wow, I’m not expecting that. Most of visitors came from Reddit (thanks Reddit!) and twitter (great!). As a present to you all, I has made a simple example of how to use Lithium as a microframework.

I called it minium. It only contains four file: .htaccess, index.php, routes.php, and filters.php. A .htaccess will redirect all request to index.php as a front controller. routes.php and filters.php contains routes and filters from my previous example.

index.php is an example of how to run Lithium with minimum requirement. Just include lithium\core\Libraries and run lithium\action\Dispatcher and you are done. That’s how awesome Lithium are. You can grab minium in github repository. I welcome any feedback.

Notes

  1. alyse-carter reblogged this from jamalsa
  2. jamalsa posted this