I need to pass a variable from an action class to a form using Symfony 1.4 and Propel.
I have tried the method listed here: Pass a variable to a Symfony Form which I believe is a method that works with Doctrine, but not Propel.
This is what I've tried:
action class:
$this->saved_cart_form = new ItemSavedCartForm(array(), array('user_id' => $user_id));
form (line to grab variable):
$this->getOption('user_id');
This hasn't worked, and there isn't much documentaion, but I believe you need to pass options through the forms constructor function, which I don't know how to do.