November 2010
2 posts
5 tags
Minium: Simple Example of Lithium as a...
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...
Nov 9th
6 tags
Lithify It Like Sinatra
Lithium, the awesome php framework nearly released it’s 1.0 version. One of the awesomness of Lithium is it’s flexibility. It’s very flexible so you can use it as a Sinatra equivalent in PHP. Let’s take a look. RESTful Routing Lithium can do RESTful routing like this: // GET request Router::connect("/create", array("http:method" => "GET"), function($request){ ...
Nov 8th
July 2010
2 posts
‘Try again. Fail again. Fail better.’ ~Samuel Beckett
Jul 21st
So Many To Do...
…so little time i have. I want to follow Zen Habits idea: ‘do less and then do even less’.
Jul 13th