Hi,
I have made some changes to TinyMVC that suit my needs a little better and decided to share them with you to hear your opinion.
1. I created a new class which I called System_Runner to do the url parsing and the call for the controller action function.
2. I moved the initialization part of the tmvc object in its constructor and made the Controller object to extend tmvc object and added the load class to tmvc object not to Controller as it was.
So in index.php I have this:
$Sys_Runner = new System_Runner();
$Sys_Runner->RUN();
The reason for doing this is because I wanted to be able to load models and libraries in controller constructor which is very useful in some situations and also when I use the load method in libraries I write only $tmvc->load->.... not $tmvc->controller->load , as it was which is shorter and clearer I think.
What do you think about this? If you are interested I may post the complete code here.