This is about 1.2...How can I make this work in 1.0? When I call sfRouting->parse() method and pass it the URL, it returns me alternate parameters...
$link = "http://www.example.com/residential/sale/properties/Safdarjang %20Enclave%2CNew%20Delhi/type_apt/price_any/beds_any/baths_any/ area_any/sort_default"; $parseArray=sfRouting::getInstance()->parse($link); It doesn't match proper route... But this route works fine in normal request URL case... Does the parse() method use some internal state, that I need to manipulate? On Sep 11, 6:50 pm, "markus.staab" <[EMAIL PROTECTED]> wrote: > maybe the blog entry can help you > outhttp://www.symfony-project.org/blog/2008/09/04/new-in-symfony-1-2-tow... > > On 11 Sep., 14:22, Sumedh <[EMAIL PROTECTED]> wrote: > > > Thanks Fabian... > > > If there is some detailed page somewhere on web, about how to do this > > in 1.0...could you please point me to it? :D > > > On Sep 11, 3:42 pm, "Fabian Lange" <[EMAIL PROTECTED]> > > wrote: > > > > Hi, > > > in 1.0 you cannot do this cleanly, works only with some very ugly hacks > > > that > > > involve overriding the routing class to get access to private methods and > > > manually modifiing current route state. > > > From 1.1 on you can do so by invoking > > > $route = > > > sfContext::getInstance()->getRouting()->findRoute($your_db_route_string); > > > which will return you an array containg the yml information. > > > I am not sure how this will be for 1.2 as Fabien is currently refactoring > > > this part, but I assume that you will have the same capabilities there. > > > > Regards > > > .: Fabian > > > > On Thu, Sep 11, 2008 at 12:22 PM, brajesh <[EMAIL PROTECTED]> wrote: > > > > > Hi friends, > > > > > Can we use the routing module's parsing code, for parsing some URL's > > > > on demand? > > > > > For example, I have a URL stored in DB...I need to parse it using the > > > > same rules that I have defined in routing.yml... > > > > > Thanks...- Zitierten Text ausblenden - > > > - Zitierten Text anzeigen - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
