注意:Kohana 3.3でPSR-0がサポートされたため、3.2ベースのモジュールは使えないものが多くなっています。
Kohana 3.3でKOstacheを使用する手順をまとめました、
※KOstacheはロジックレスなテンプレートエンジンです。KOstacheの詳細はこちら。
まず、Kohanaのモジュールディレクトリで KOstacheをcloneしてモジュールを取り込みます。
1 2 | cd modules git clone https: //github .com /zombor/KOstache .git |
PSR-0がサポートに対応したバージョンをチェックアウトします。
1 | cd KOstache |
mustasheを取ってきてKOstacheのvendorディレクトリにコピーします。
1 2 | git clone https: //github .com /bobthecow/mustache .php.git /tmp/mustache .php # とりあえず/tmpにチェックアウト cp -R /tmp/mustache .php/* vendor /mustache/ |