You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
FuelPHPはデフォルトでParserパッケージが用意されている為 簡単にTwigを扱うことが可能です。 マニュアルの情報で十分ですが、 英語なので日本語で解説してみたいと思います。 まずはTwigの公式サイトから Twig本体をダウンロードします。 解凍してlib以下にあるTwigフォルダを そのまま app/vendor/ にコピーします。 そして app/config/config.php の packagesの設定に parser を追加します。 'packages' => array( // 'orm', 'parser', ), これで環境の準備完了です。 あとはControllerのaction内で $data = array('hoge' => '受け渡したいデータ'); return Response::forge(View::forge('コントローラー名/ファイル名
あけましておめでとうございます。小川です。 本日はTwigでカスタムタグを追加する方法を紹介します。 ■Twig TwigはPHPで実装されたテンプレートエンジンの1つで、Python製のテンプレートエンジンのJinjaとほぼ同じ構文を持っています。 Webアプリケーションフレームワークsymfonyの次期バージョンでもあるSymfony2で採用されることが決定しており、Symfony界隈を中心に注目を浴びているテンプレートエンジンです。 <h1>Categories</h1> {% if categories|length > 0 %} <ul> {% for category in categories %} <li>{{ category.name }}</li> {% endfor %} </ul> {% endif %} 上記がTwigを使ったサンプルコードです。「{% %}」や
This blog post is not for the faint-hearted! Some people will strongly disagree with me and some others will probably want to kill me at the upcoming Zend Conference. And if starting an argument in the comments can help you feel better, please feel free to do so. If you want to have a more advanced discussion on this topic, vote for my talk at the Zend UnConference. So, you think PHP is a templati
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く