'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
'rules' => [
'test' => '/test/index',
],
],
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<?php
if (isset($_POST['submit']))
{
echo "<pre>";
print_r($_FILES);
echo "</pre>";
exit();
}
?>
<form action="index.php" method="POST" enctype="multipart/form-data">
<input type="file" multiple name="images[]">
<input type="submit" name="submit">
</form>
</body>
</html>