Please help me in coding for controller and support for URL Routing for PHP MVC framework.
views:
350answers:
3
A:
What PHP MVC framework? If you haven't choose yet, take symfony:
http://www.symfony-project.org
Therу is a plenty of examples on their website.
FractalizeR
2009-09-18 06:59:58
A:
you shouldn't try to reinvent the wheel, if you need to do some mvc there plenty of framework to do that in php
- Zend Framework
- cakePHP
- symfony
- Code igniter
- and all I forgot
Personally I work on ZF. you should take a look at those and choose the one which suit you the best.
RageZ
2009-09-18 07:02:25
A:
You need a router that will bootstrap your classes (controllers etc.). Usually it is an index.php file where you direct all your queries (from Apache etc.)
The router will then parse the route ($_GET) requested and call the controller class in the place of your choosing.
You can then extend it by calling Models and Views from your Controller class.
Radek
2009-10-31 18:27:13