toolbar cannot be initialized correctly.

setcookie() is arrays will cause ‘Array to string conversion’ to be wrong.
toolbar cannot be initialized correctly.

Example, Home Controller add code:
setcookie("cookie[three]", "cookiethree");
setcookie("cookie[two]", "cookietwo");
setcookie("cookie[one]", "cookieone");
This commit is contained in:
bangbangda 2018-07-08 22:42:53 +08:00 committed by GitHub
parent 6043c3afcd
commit 936fa81768
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -237,7 +237,7 @@
<?php foreach ($cookies as $name => $value) : ?>
<tr>
<td><?= $name ?></td>
<td><?= $value ?></td>
<td><?= is_array($value) ? var_dump($value) : $value ?></td>
</tr>
<?php endforeach ?>
</tbody>