title: Routing in PHP using the Flight framework
body: <p>I don't have any PHP framework experience and just have some pretty general questions regarding their use: specifically, URL routing. </p>
  
  <p>I'm using the micro-framework, Flight.</p>
  
  <p>Simple routing example:</p>
  
  <pre><code>&lt;?php
  
      // Flight Framework
      require "flight/Flight.php";
  
      Flight::route('/', function(){
          echo 'hello world!';
      });
  
      Flight::start();
  
  ?&gt;
  </code></pre>
  
  <p>When I visit this page (/), I get the 'hello world' message. Great, working fine.</p>
  
  <p>My question is, is routing used for a URL that doesn't exist (e.g. /categories)? Then, when a user visits that page, the function would be called? </p>
  
  <p>So if I changed the route to '/categories', shouldn't this 'hello world' function be displayed upon visiting /categories?</p>