[symfony-users] Re: genUrl with object
It says: The /:sf_culture/advertisement/show/:id/:slug route has some missing mandatory parameters (:id, :slug). This means it doesn't receive the object. While I actually do give it (and url_for would accept it this way): genUrl('advertisement_show', $oAdvertisement, true) Thanks for thinking with me! On 16 jul, 10:30, Gábor Fási maerl...@gmail.com wrote: What's the error message? Did you try removing the *? On Fri, Jul 16, 2010 at 10:19, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Anyone? On 14 jul, 15:39, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Yes: advertisement_show: url: /:sf_culture/advertisement/show/:id/:slug/* class: sfPropelRoute options: { model: Advertisement, type: object } param: { module: advertisement, action: show } requirements: sf_method: [get, post] sf_culture: (?:en|es|de|fr|nl) On 14 jul, 15:32, Gábor Fási maerl...@gmail.com wrote: Is your route declared as sfPropelRoute/sfDoctrineRoute? On Wed, Jul 14, 2010 at 15:23, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: I can't use genUrl like this: genUrl('advertisement_show', $Advertisement) where $Advertisement is the object for the sfObjectRoute The only way to do so is to call it like this: genUrl('advertisement_show?id=' . $Advertisement-getId() . 'slug=' . $Advertisement-getSlug()) But that, ofcourse, kills the flexibility of the routing system! How can I do the top solution with getUrl? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Re: genUrl with object
Are you sure $oAdvertisement is not null? Can you call its getId and getSlug methods? On Sun, Jul 18, 2010 at 19:42, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: It says: The /:sf_culture/advertisement/show/:id/:slug route has some missing mandatory parameters (:id, :slug). This means it doesn't receive the object. While I actually do give it (and url_for would accept it this way): genUrl('advertisement_show', $oAdvertisement, true) Thanks for thinking with me! On 16 jul, 10:30, Gábor Fási maerl...@gmail.com wrote: What's the error message? Did you try removing the *? On Fri, Jul 16, 2010 at 10:19, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Anyone? On 14 jul, 15:39, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Yes: advertisement_show: url: /:sf_culture/advertisement/show/:id/:slug/* class: sfPropelRoute options: { model: Advertisement, type: object } param: { module: advertisement, action: show } requirements: sf_method: [get, post] sf_culture: (?:en|es|de|fr|nl) On 14 jul, 15:32, Gábor Fási maerl...@gmail.com wrote: Is your route declared as sfPropelRoute/sfDoctrineRoute? On Wed, Jul 14, 2010 at 15:23, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: I can't use genUrl like this: genUrl('advertisement_show', $Advertisement) where $Advertisement is the object for the sfObjectRoute The only way to do so is to call it like this: genUrl('advertisement_show?id=' . $Advertisement-getId() . 'slug=' . $Advertisement-getSlug()) But that, ofcourse, kills the flexibility of the routing system! How can I do the top solution with getUrl? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: genUrl with object
Yes, I'm sure. Did a print_r($oAdvertisement) check just now to confirm. On 18 jul, 19:45, Gábor Fási maerl...@gmail.com wrote: Are you sure $oAdvertisement is not null? Can you call its getId and getSlug methods? On Sun, Jul 18, 2010 at 19:42, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: It says: The /:sf_culture/advertisement/show/:id/:slug route has some missing mandatory parameters (:id, :slug). This means it doesn't receive the object. While I actually do give it (and url_for would accept it this way): genUrl('advertisement_show', $oAdvertisement, true) Thanks for thinking with me! On 16 jul, 10:30, Gábor Fási maerl...@gmail.com wrote: What's the error message? Did you try removing the *? On Fri, Jul 16, 2010 at 10:19, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Anyone? On 14 jul, 15:39, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Yes: advertisement_show: url: /:sf_culture/advertisement/show/:id/:slug/* class: sfPropelRoute options: { model: Advertisement, type: object } param: { module: advertisement, action: show } requirements: sf_method: [get, post] sf_culture: (?:en|es|de|fr|nl) On 14 jul, 15:32, Gábor Fási maerl...@gmail.com wrote: Is your route declared as sfPropelRoute/sfDoctrineRoute? On Wed, Jul 14, 2010 at 15:23, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: I can't use genUrl like this: genUrl('advertisement_show', $Advertisement) where $Advertisement is the object for the sfObjectRoute The only way to do so is to call it like this: genUrl('advertisement_show?id=' . $Advertisement-getId() . 'slug=' . $Advertisement-getSlug()) But that, ofcourse, kills the flexibility of the routing system! How can I do the top solution with getUrl? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Re: genUrl with object
Try generateUrl instead of genUrl public function generateUrl($route, $params = array(), $absolute = false) On Sun, Jul 18, 2010 at 20:00, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Yes, I'm sure. Did a print_r($oAdvertisement) check just now to confirm. On 18 jul, 19:45, Gábor Fási maerl...@gmail.com wrote: Are you sure $oAdvertisement is not null? Can you call its getId and getSlug methods? On Sun, Jul 18, 2010 at 19:42, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: It says: The /:sf_culture/advertisement/show/:id/:slug route has some missing mandatory parameters (:id, :slug). This means it doesn't receive the object. While I actually do give it (and url_for would accept it this way): genUrl('advertisement_show', $oAdvertisement, true) Thanks for thinking with me! On 16 jul, 10:30, Gábor Fási maerl...@gmail.com wrote: What's the error message? Did you try removing the *? On Fri, Jul 16, 2010 at 10:19, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Anyone? On 14 jul, 15:39, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Yes: advertisement_show: url: /:sf_culture/advertisement/show/:id/:slug/* class: sfPropelRoute options: { model: Advertisement, type: object } param: { module: advertisement, action: show } requirements: sf_method: [get, post] sf_culture: (?:en|es|de|fr|nl) On 14 jul, 15:32, Gábor Fási maerl...@gmail.com wrote: Is your route declared as sfPropelRoute/sfDoctrineRoute? On Wed, Jul 14, 2010 at 15:23, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: I can't use genUrl like this: genUrl('advertisement_show', $Advertisement) where $Advertisement is the object for the sfObjectRoute The only way to do so is to call it like this: genUrl('advertisement_show?id=' . $Advertisement-getId() . 'slug=' . $Advertisement-getSlug()) But that, ofcourse, kills the flexibility of the routing system! How can I do the top solution with getUrl? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: genUrl with object
It's official: you are my hero. Thanks! On 18 jul, 20:14, Gábor Fási maerl...@gmail.com wrote: Try generateUrl instead of genUrl public function generateUrl($route, $params = array(), $absolute = false) On Sun, Jul 18, 2010 at 20:00, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Yes, I'm sure. Did a print_r($oAdvertisement) check just now to confirm. On 18 jul, 19:45, Gábor Fási maerl...@gmail.com wrote: Are you sure $oAdvertisement is not null? Can you call its getId and getSlug methods? On Sun, Jul 18, 2010 at 19:42, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: It says: The /:sf_culture/advertisement/show/:id/:slug route has some missing mandatory parameters (:id, :slug). This means it doesn't receive the object. While I actually do give it (and url_for would accept it this way): genUrl('advertisement_show', $oAdvertisement, true) Thanks for thinking with me! On 16 jul, 10:30, Gábor Fási maerl...@gmail.com wrote: What's the error message? Did you try removing the *? On Fri, Jul 16, 2010 at 10:19, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Anyone? On 14 jul, 15:39, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Yes: advertisement_show: url: /:sf_culture/advertisement/show/:id/:slug/* class: sfPropelRoute options: { model: Advertisement, type: object } param: { module: advertisement, action: show } requirements: sf_method: [get, post] sf_culture: (?:en|es|de|fr|nl) On 14 jul, 15:32, Gábor Fási maerl...@gmail.com wrote: Is your route declared as sfPropelRoute/sfDoctrineRoute? On Wed, Jul 14, 2010 at 15:23, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: I can't use genUrl like this: genUrl('advertisement_show', $Advertisement) where $Advertisement is the object for the sfObjectRoute The only way to do so is to call it like this: genUrl('advertisement_show?id=' . $Advertisement-getId() . 'slug=' . $Advertisement-getSlug()) But that, ofcourse, kills the flexibility of the routing system! How can I do the top solution with getUrl? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: genUrl with object
Anyone? On 14 jul, 15:39, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Yes: advertisement_show: url: /:sf_culture/advertisement/show/:id/:slug/* class: sfPropelRoute options: { model: Advertisement, type: object } param: { module: advertisement, action: show } requirements: sf_method: [get, post] sf_culture: (?:en|es|de|fr|nl) On 14 jul, 15:32, Gábor Fási maerl...@gmail.com wrote: Is your route declared as sfPropelRoute/sfDoctrineRoute? On Wed, Jul 14, 2010 at 15:23, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: I can't use genUrl like this: genUrl('advertisement_show', $Advertisement) where $Advertisement is the object for the sfObjectRoute The only way to do so is to call it like this: genUrl('advertisement_show?id=' . $Advertisement-getId() . 'slug=' . $Advertisement-getSlug()) But that, ofcourse, kills the flexibility of the routing system! How can I do the top solution with getUrl? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Re: genUrl with object
What's the error message? Did you try removing the *? On Fri, Jul 16, 2010 at 10:19, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Anyone? On 14 jul, 15:39, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Yes: advertisement_show: url: /:sf_culture/advertisement/show/:id/:slug/* class: sfPropelRoute options: { model: Advertisement, type: object } param: { module: advertisement, action: show } requirements: sf_method: [get, post] sf_culture: (?:en|es|de|fr|nl) On 14 jul, 15:32, Gábor Fási maerl...@gmail.com wrote: Is your route declared as sfPropelRoute/sfDoctrineRoute? On Wed, Jul 14, 2010 at 15:23, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: I can't use genUrl like this: genUrl('advertisement_show', $Advertisement) where $Advertisement is the object for the sfObjectRoute The only way to do so is to call it like this: genUrl('advertisement_show?id=' . $Advertisement-getId() . 'slug=' . $Advertisement-getSlug()) But that, ofcourse, kills the flexibility of the routing system! How can I do the top solution with getUrl? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: genUrl with object
Yes: advertisement_show: url: /:sf_culture/advertisement/show/:id/:slug/* class: sfPropelRoute options: { model: Advertisement, type: object } param: { module: advertisement, action: show } requirements: sf_method: [get, post] sf_culture: (?:en|es|de|fr|nl) On 14 jul, 15:32, Gábor Fási maerl...@gmail.com wrote: Is your route declared as sfPropelRoute/sfDoctrineRoute? On Wed, Jul 14, 2010 at 15:23, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: I can't use genUrl like this: genUrl('advertisement_show', $Advertisement) where $Advertisement is the object for the sfObjectRoute The only way to do so is to call it like this: genUrl('advertisement_show?id=' . $Advertisement-getId() . 'slug=' . $Advertisement-getSlug()) But that, ofcourse, kills the flexibility of the routing system! How can I do the top solution with getUrl? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en