SlimはPHPで作られた比較的新しいフレームワークです。「マイクロフレームワーク」のひとつで、SynfonyやCakePHPなどのフルスタックのものとは異なり、非常にシンプルな構成になっています。機能も、フロントコントローラにフォーカスしているので、モデルやDBへのアクセスといった部分はごっそり省略されています。まさに「Slim」です。 Slimのサイト - http://www.slimframework.com/ ダウンロード - http://www.slimframework.com/install ソースコード - https://github.com/codeguy/Slim Let's start! 何はともあれ、まずはサンプルを作成してみましょう。 GitHubのmasterブランチからSlimをダウンロードして、ZIPファイルを解凍します。ここでは、 .htaccess
最近slimを使う機会がありそうなのでphpのマイクロフレームワークであるslimを基礎から触った。 まずはインストールしてslimとtwigで連携するところまで行う。 composerからのslimのインストール $ curl -s http://getcomposer.org/installer | php $ vi composer.json { "require": { "slim/slim": "2.*", "slim/extras": "2.0.*", "twig/twig": "1.*" } } $ php composer.phar installindex.phpの作成 $ mkdir web $ vi web/index.php <?php require '../vendor/autoload.php'; use Slim\Slim; use Slim\Extras\
Slim is a lightweight framework that packs a lot of punch for its tiny footprint. It has an incredible routing system, and offers a solid base to work from without getting in your way. Let me show you! But that's not to say that Slim doesn't has some issues; it's one-file setup becomes cluttered as your application grows. In this article, we'll review how to structure a Slim application to not onl
余りにSinatraに慣れて、Slimのroutingで躓いた故、書きます。 [Slim Framwork]( http://www.slimframework.com/ ) [codeguy/Slim]( https://github.com/codeguy/Slim ) GitHub A PHP micro framework inspired by Sinatra Slim is a PHP micro framework that helps you quickly write simple yet powerful web applications and APIs. Slim is easy to use for both beginners and professionals. Slim favors cleanliness over terseness and common
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く