Custom routing doesn't work correctly [F3]
<p>The custom route doesn't work correctly and always routes to <strong><em>user.htm</em></strong></p>

<p>index.php</p>

<pre><code>$routes = [
  "/" =&gt;  "index.htm",
  "/user/id=@id" =&gt; "user.htm","/user/@id" =&gt; "user.htm",
];

foreach ($routes as $path =&gt; $file) {
  $f3-&gt;route("GET ".$path,
    function($f3){
      global $file,$path;
      echo View::instance()-&gt;render($file);
    }
  );
}
</code></pre>