Commit 99c0797
committed
Update to “Controller Filters ”
URI multi-level directory will be prompted wrong.
err mes : preg_match(): Unknown modifier 'r'
show demo:
application/Config/Filters.php
public filters = [
'foo' => ['before' => ['admin/foo/*']],
'bar' => ['before' => ['admin/bar/*']]
];
If the delimiter appears often inside the pattern, it is a good idea to choose another delimiter in order to increase readability.
http://php.net/manual/en/regexp.reference.delimiters.php1 parent a6fd7a1 commit 99c0797
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | | - | |
| 247 | + | |
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
| 285 | + | |
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
| |||
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
342 | | - | |
| 342 | + | |
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
| |||
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
363 | | - | |
| 363 | + | |
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
| |||
0 commit comments