php - Definition of bootstraping and routing - MVC Pattern -


i have been learning mvc pattern , think have grasp on entails, , practice im going implement own mvc framework , website.

i have read many tutorials, saying should have bootstrap class , route class, aswell others having route class, has me confused bootstrap does?

i know router pulls in requested uri, breaks down , sends needed controller whichever module needed.

i dont know bootstrap should used for?

my ideas should:

  • be file included index.php
  • have autoloading functions in it
  • instantiate router class
  • include main config file db access, defining web directories etc.

does sound right?

also if access router class via bootstrap should router pass correct controller name bootstrap pass data onto correct controller or should router directly send data correct class?

thanks tom


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -