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. 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. 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. 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. 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 .. 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. 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
Archived
This topic is now archived and is closed to further replies.