tags:

views:

350

answers:

3

Please help me in coding for controller and support for URL Routing for PHP MVC framework.

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
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

Personally I work on ZF. you should take a look at those and choose the one which suit you the best.

RageZ
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