Ubuntu11.04にSilexをインストール
Silexをインストールした際のメモです。
mkdir silex cd silex/ wget http://silex.sensiolabs.org/get/silex.phar nano index.php
<?php require_once __DIR__.'/silex.phar'; $app = new Silex\Application(); $app->get('/hello/{name}', function($name) use($app) { return 'Hello '.$app->escape($name); }); $app->run();
cd /var/www/ sudo ln -s /home/user/silex/
http://(サーバーアドレス)/silex/index.php/hello/silex
[:Source]
Silex - The PHP micro-framework based on Symfony2 Components
TOPページ - Silex ユーザーガイド