質問編集履歴

1

ソース加筆

2016/07/28 22:40

投稿

vowd1
vowd1

スコア53

test CHANGED
File without changes
test CHANGED
@@ -55,3 +55,67 @@
55
55
  ,
56
56
 
57
57
  ```
58
+
59
+
60
+
61
+ ●7月29日加筆
62
+
63
+ FacadeAuthLogicControllerがないと怒られる
64
+
65
+ ↓エラーの出ているソース
66
+
67
+ ```php
68
+
69
+ <?php
70
+
71
+
72
+
73
+ session_start();
74
+
75
+ class LoginsController extends AppController
76
+
77
+ {
78
+
79
+ /** ビュー未使用 */
80
+
81
+ public $autoRender = true;
82
+
83
+ public $list; // 本情報
84
+
85
+ public $value; // 本情報
86
+
87
+ public $auth_info; // 本情報
88
+
89
+
90
+
91
+ public function index(){
92
+
93
+ $this->render('/login/login');
94
+
95
+
96
+
97
+
98
+
99
+ }
100
+
101
+ public function auth(){
102
+
103
+ $this->render('/login/login');
104
+
105
+
106
+
107
+ $esc_username = htmlspecialchars($this->data['login']['username'],ENT_QUOTES,"UTF-8");
108
+
109
+ $esc_password = htmlspecialchars($this->data['login']['password'],ENT_QUOTES,"UTF-8");
110
+
111
+
112
+
113
+ if($esc_username !='' && $esc_password && isset($esc_username) && isset($esc_password)){
114
+
115
+
116
+
117
+ //認証テーブルにアクセス
118
+
119
+ $auth_search = new FacadeAuthLogicController();
120
+
121
+ ```