質問編集履歴
1
インストールの流れ/試したこと を追記しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -18,11 +18,35 @@
|
|
18
18
|
|
19
19
|
|
20
20
|
|
21
|
-
試したこと:
|
21
|
+
インストールの流れ/試したこと:
|
22
22
|
|
23
|
-
|
23
|
+
・公式からSmartyをダウンロード
|
24
24
|
|
25
|
+
・libsディレクトリをsmartyにリネームしてapp/Venderに置く
|
26
|
+
|
27
|
+
・SmartyView.phpクラスをapp/Viewの中に作成
|
28
|
+
|
25
|
-
|
29
|
+
・SmartyViewはこちらから拝借
|
30
|
+
|
31
|
+
※https://github.com/news2u/cakephp-smartyview
|
32
|
+
|
33
|
+
・app/View/Pages/の中にsmarty.tplを作成
|
34
|
+
|
35
|
+
・app/Controller/AppController.phpに「public $viewClass = 'SmartyView.Smarty';」を定義
|
36
|
+
|
37
|
+
↓
|
38
|
+
|
39
|
+
動かない...
|
40
|
+
|
41
|
+
↓
|
42
|
+
|
43
|
+
・bootstrap.phpに「CakePlugin::load('SmartyView');」を定義
|
44
|
+
|
45
|
+
・routes.phpに「Router::connect('/smarty', array('controller' => 'pages', 'action' => 'smarty'));」を定義
|
46
|
+
|
47
|
+
・PHPバージョンを落とす(7.0→5.6)
|
48
|
+
|
49
|
+
|
26
50
|
|
27
51
|
|
28
52
|
|