Symfony: Pass an object from another module to a form
        Posted  
        
            by 
                djcloud23
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by djcloud23
        
        
        
        Published on 2012-10-17T00:41:28Z
        Indexed on 
            2012/10/17
            11:01 UTC
        
        
        Read the original article
        Hit count: 239
        
I have a symfony project and I have one model, which for this example I will name Boat. From the Boat's showSuccess page, I would like to make a link to another model's form page. For this example we will call it Ticket. When they click on the link, I would like for the Boat object to be passed to the Ticket form because I have to display some of that specific Boat's fields (title, price, etc) on the Ticket form page (newSuccess.php).
I guess my question is, how do I pass an object (as a variable) to another model's "new" form page. I have looked everywhere and I can't seem to find an answer that works for me. Thank you!
© Stack Overflow or respective owner