title: send each request to appropriate controller
body: <p>I want to make a small web application, and I'm not sure how to go about this.
  What I want to do is send every request to the right controller. Kind of how CodeIgniter does it.</p>
  
  <p>So if user asks for domain.com/video/details
  I want my bootstrap (index?) file to send him to the "Video" controller class and call the "details" method in that class.</p>
  
  <p>If the user asks for domain.com/profile/edit I want to send him to the "Profile" controller class and call the "edit" method in that class.</p>
  
  <p>Can someone explain how I should do this? I have some experience using MVC frameworks, but have never "written" something with MVC myself.</p>
  
  <p>Thanks!</p>
  
  <p><strong>Edit: I understand now how the url points to the right Controller, but I don't see where the object instance of the Controller is made, to call the right method?</strong></p>