Hi Nicolas, why do you want to generate an URL inside the model layer ?
in the MVC architecture, the model must be independant from the way the layer is accessed. if you generate URL's inside the model layer, you broke that rule by stipulating that the application would be accessed by the web only. why don't you use the Controler layer, to generate url's inside actions methods ? 2007/5/14, Nicolas CHARLOT <[EMAIL PROTECTED]>: > > > msykora a écrit : > > Try this solution: > > > > $url=sfContext::getInstance()->getController()->genUrl($uri); > > > Thanks! > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
