5 Comments

  1. Anonymous
    March 14, 2011 @ 4:23 pm

    […] […]

    Reply

  2. orit
    April 24, 2011 @ 6:24 am

    Hi
    Thanks for this.
    What if instead of renderFormTag(url_for(‘contact_form/index’)); ?>
    I want to put the routing itself? contact-me
    I did my own form (which also required an object) and when I click submit, it tells me:
    “Empty module and/or action after parsing the URL …”
    But the routing does work when I link TO the form with this route. Why doesn’t it work also for the submit action? 🙁

    Reply

    • Jacob Mather
      April 24, 2011 @ 7:42 am

      I’d have to see your form and routing configuration to help you more. There’s too many variables to say for sure.

      Reply

      • orit
        April 28, 2011 @ 3:38 pm

        Thanks,
        I already did it. I just had to add sf_method: [get,post] to the routing rule which looks like this now:
        price_quote:
        url: /:id/:name_slug/ask-for-price-quote
        class: sfDoctrineRoute
        param: { module: priceQuote, action: index }
        options: { model: Tour, type: object }
        requirements:
        id: \d+
        sf_method: [get,post]

        Reply

  3. machau
    April 26, 2012 @ 6:54 am

    thanks dude!
    exectly what i needed.
    cheers

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *