bogdaniel Posted June 7, 2009 Share Posted June 7, 2009 Hello .. i'm trying to understand the url routing in mvc pattern but for the moment i couldn`t understand to much i know that it's base is in a var like $_GET['url'](used as an example) but i couldn`t understand how to pass the a link like index?url=details&category=1&id=4(as an example) can please someone help with some explanations codes.. articles.. from what i found on google looking for php url routing//routes//tutorials//articles i didn`t find anything that would help me. thank you for your support and help. Quote Link to comment https://forums.phpfreaks.com/topic/161304-url-routes-routing-mvc-pattern-oop/ Share on other sites More sharing options...
dawsba Posted June 8, 2009 Share Posted June 8, 2009 Look for GET and POST variables if the vars are in the address bar then theyre POSTs. Quote Link to comment https://forums.phpfreaks.com/topic/161304-url-routes-routing-mvc-pattern-oop/#findComment-851244 Share on other sites More sharing options...
Ken2k7 Posted June 8, 2009 Share Posted June 8, 2009 Read up on .htaccess as well. Quote Link to comment https://forums.phpfreaks.com/topic/161304-url-routes-routing-mvc-pattern-oop/#findComment-851255 Share on other sites More sharing options...
DarkWater Posted June 8, 2009 Share Posted June 8, 2009 Look for GET and POST variables if the vars are in the address bar then theyre POSTs. If it's in the URL, it's a GET parameter, not POST. Quote Link to comment https://forums.phpfreaks.com/topic/161304-url-routes-routing-mvc-pattern-oop/#findComment-851256 Share on other sites More sharing options...
bogdaniel Posted June 8, 2009 Author Share Posted June 8, 2009 yes i understand what your are saying.. but my problem was how to parse data to the $_GET['url'] to create a routes system.. with options for building urls .. Quote Link to comment https://forums.phpfreaks.com/topic/161304-url-routes-routing-mvc-pattern-oop/#findComment-851659 Share on other sites More sharing options...
dawsba Posted June 8, 2009 Share Posted June 8, 2009 lol sorry darkwater youre right , bad case of left brain syndrome. Quote Link to comment https://forums.phpfreaks.com/topic/161304-url-routes-routing-mvc-pattern-oop/#findComment-851760 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.