#php #php #smarty #環境構築

Kohana3にSmarty moduleをインストール

ダウンロード

http://wiki.github.com/MrAnchovy/kohana-module-smarty/

インストール

githubでも手順がとても分かりやすいので直接引用させていただきます。

  1. Download the latest version from the links above
  2. Unpack the downloaded file
  3. Move the smarty directory into the Kohana modules directory
  4. Enable the module in your application’s bootstrap.php
Kohana::modules(array(
  'auth' => MODPATH.'auth', // Basic authentication
  // 'cache' => MODPATH.'cache', // Caching with multiple backends
  // 'codebench' => MODPATH.'codebench', // Benchmarking tool
  'database' => MODPATH.'database', // Database access
  // 'image' => MODPATH.'image', // Image manipulation
  'orm' => MODPATH.'orm', // Object Relationship Mapping
  'pagination' => MODPATH.'pagination', // Paging of results
  'userguide' => MODPATH.'userguide', // User guide and API documentation
  'smarty' => MODPATH.'smarty', // smarty template module.
));
  1. Visit the page www.yoursite.com/smarty to confirm all is OK

その他リンク

このモジュールのファイル構造: http://github.com/MrAnchovy/kohana-module-smarty/wiki/file-structure

Qihuan Piao

朴 起煥

中国育ち、東京暮らし。読んだり書いたり、時には考え込んだり。親になってから5年ほど、ブログ(とその他もろもろ)は完全停止していたけど、気づけばまた書いている。ここにはそんな寄り道の記録を書いています。結論が出ない話も多いけど、それもまたよし。