I'm creating a personal MVC Framework and i googled around to see the code of existing ones and take some inspiration. I noticed (but i probably got it wrong), that for example CodeIgniter's Application are somehow included inside a main method. (Noticed because of the use of $this in the application system).
How does it works? Is it recommended (i think that having some background procedures could help me a lot)?