arif_shariati Posted January 10, 2011 Share Posted January 10, 2011 can any body let me know tutorial for making mvc or other php framework. I need it badly. Quote Link to comment Share on other sites More sharing options...
ignace Posted January 10, 2011 Share Posted January 10, 2011 can any body let me know tutorial for making mvc or other php framework. I need it badly. $controller = getParam('c', $_GET); switch($controller) { case 'about': include 'about.php'; break; case 'contact': include 'contact.php'; break; default: include 'home.php'; break; } function getParam($offset, &$array, $default = null) { if(array_key_exists($offset, $array)) { return $array[$offset]; } return $default; } Is a (very) simple example of MVC. What level of framework are you looking for? CodeIgniter (easy) Symfony (medium) Zend (hard) Quote Link to comment Share on other sites More sharing options...
arif_shariati Posted January 11, 2011 Author Share Posted January 11, 2011 I need easy framework just like codeigniter but they have changed it. I need pure framework. What stuffs and code pattern needed for mvc ? Quote Link to comment Share on other sites More sharing options...
trq Posted January 11, 2011 Share Posted January 11, 2011 What stuffs and code pattern needed for mvc ? ignace just provided a simple example of the MVC pattern. Well, the controller part anyway. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.