Codeigniter に Smarty をインストールする方法について、ここでちょっとした助けが必要です。
私がしたことは次のとおりです。
- smarty を抽出し、名前を smarty に変更して、サード パーティのフォルダーに配置します。
- autoload.php で smarty を有効にする
- ビューにテンプレート フォルダーを作成する (templates,templates_c)
- サンプルページを実行します(私の場合、ウェルカムメッセージであるデフォルトのインデックスを実行します)
結果は次のとおりです: 要求されたクラスをロードできません: smarty
autoload.php に smarty を追加しました:
$autoload['packages'] = array(APPPATH.'third_party','smarty');
/*
| -------------------------------------------------------------------
| Auto-load Libraries
| -------------------------------------------------------------------
| These are the classes located in the system/libraries folder
| or in your application/libraries folder.
|
| Prototype:
|
| $autoload['libraries'] = array('database', 'session', 'xmlrpc');
*/
$autoload['libraries'] = array('smarty');
どこにエラーがあるのか わかりません。あなたが私を助けてくれることを願っています。私はsmartyの初心者です。