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. Link to comment https://forums.phpfreaks.com/topic/223960-php-framework/ 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) Link to comment https://forums.phpfreaks.com/topic/223960-php-framework/#findComment-1157469 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 ? Link to comment https://forums.phpfreaks.com/topic/223960-php-framework/#findComment-1157801 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. Link to comment https://forums.phpfreaks.com/topic/223960-php-framework/#findComment-1157803 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.