I dont't want to use any framework, but I need a Frontcontroller, Where I can get HELP
Thanks.
I dont't want to use any framework, but I need a Frontcontroller, Where I can get HELP
Thanks.
print_r($_GET)
should contains 'tratata/tratata';Sorry for my english.
Pick a framework and look at the implementation of their FrontController. Figure out how it works and build your own.
That said, why on earth would you not want to use a framework? The only reason I can think of is that you want to know how it works. And for that just google and look at existing sources.
I would recommend building a dynamic invocation front controller. This is what the frameworks use. Here is a link to get started.
http://www.phpwact.org/pattern/front_controller
This book has a great chapter on Presentation Patterns during which he covers the front controller pattern.
PHP Objects, Patterns and Practice, Third Edition (Expert's Voice in Open Source)