質問編集履歴
2
autoload.phpのソースを追加しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -36,6 +36,8 @@
|
|
36
36
|
|
37
37
|
```PHP
|
38
38
|
|
39
|
+
//application/models/Test_info.php
|
40
|
+
|
39
41
|
|
40
42
|
|
41
43
|
class Test_info extends Test_blogic
|
@@ -66,6 +68,8 @@
|
|
66
68
|
|
67
69
|
```PHP
|
68
70
|
|
71
|
+
//application/models/Test_blogic.php
|
72
|
+
|
69
73
|
|
70
74
|
|
71
75
|
abstract class Test_blogic extends CI_Model
|
@@ -166,7 +170,7 @@
|
|
166
170
|
|
167
171
|
|
168
172
|
|
169
|
-
//dat
|
173
|
+
//application/config/database.php
|
170
174
|
|
171
175
|
|
172
176
|
|
@@ -220,7 +224,19 @@
|
|
220
224
|
|
221
225
|
```
|
222
226
|
|
223
|
-
|
227
|
+
```PHP
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
//application/config/autoload.php
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
$autoload['libraries'] = array('database','user_agent','email');
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
```
|
224
240
|
|
225
241
|
### 補足情報(FW/ツールのバージョンなど)
|
226
242
|
|
1
datebase.phpのソースを追加しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -36,6 +36,8 @@
|
|
36
36
|
|
37
37
|
```PHP
|
38
38
|
|
39
|
+
|
40
|
+
|
39
41
|
class Test_info extends Test_blogic
|
40
42
|
|
41
43
|
{
|
@@ -64,6 +66,8 @@
|
|
64
66
|
|
65
67
|
```PHP
|
66
68
|
|
69
|
+
|
70
|
+
|
67
71
|
abstract class Test_blogic extends CI_Model
|
68
72
|
|
69
73
|
{
|
@@ -158,9 +162,63 @@
|
|
158
162
|
|
159
163
|
```
|
160
164
|
|
161
|
-
|
165
|
+
```PHP
|
166
|
+
|
167
|
+
|
168
|
+
|
162
|
-
|
169
|
+
//datebase.php
|
170
|
+
|
171
|
+
|
172
|
+
|
163
|
-
|
173
|
+
$active_group = 'default';
|
174
|
+
|
175
|
+
$query_builder = TRUE;
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
$db['default'] = array(
|
180
|
+
|
181
|
+
'dsn' => '',
|
182
|
+
|
183
|
+
'hostname' => '***.**.**.***',
|
184
|
+
|
185
|
+
'username' => '****',
|
186
|
+
|
187
|
+
'password' => '****',
|
188
|
+
|
189
|
+
'database' => 'testdb',
|
190
|
+
|
191
|
+
'dbdriver' => 'mysqli',
|
192
|
+
|
193
|
+
'dbprefix' => '',
|
194
|
+
|
195
|
+
'pconnect' => TRUE,
|
196
|
+
|
197
|
+
'db_debug' => TRUE,
|
198
|
+
|
199
|
+
'cache_on' => FALSE,
|
200
|
+
|
201
|
+
'cachedir' => '',
|
202
|
+
|
203
|
+
'char_set' => 'utf8',
|
204
|
+
|
205
|
+
'dbcollat' => 'utf8_general_ci',
|
206
|
+
|
207
|
+
'swap_pre' => '',
|
208
|
+
|
209
|
+
'encrypt' => FALSE,
|
210
|
+
|
211
|
+
'compress' => FALSE,
|
212
|
+
|
213
|
+
'stricton' => FALSE,
|
214
|
+
|
215
|
+
'failover' => array(),
|
216
|
+
|
217
|
+
'save_queries' => TRUE
|
218
|
+
|
219
|
+
);
|
220
|
+
|
221
|
+
```
|
164
222
|
|
165
223
|
|
166
224
|
|