This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

Where'd my parameter go?!

Notes and reports about symfony 1.0.x stable

Where'd my parameter go?!

by blurmy23 » Sun Apr 10, 2011 6:00 pm

% symfony -V
symfony version 1.0.17

Apologies in advance -- symfony amateur here with an inherited project.

I've added the following to apps/frontend/modules/top/templates/indexSuccess.php:

Code: Select all
<?php echo form_tag('contents/'.$adv_data->getId()) ?>
<?php echo $sf_params->get('email'); ?>
<?php echo input_tag('email', $sf_params->get('email'))?>
<?php echo submit_tag('Next') ?>
</form>


Pretty straightforward, right?

So then I add the following to apps/frontend/modules/top/actions/actions.class.php in the executeContents() method:

Code: Select all
$email = $this->getRequestParameter('email');
$this->getRequest()->setParameter('email', $email);
if (!$this->validateForm()) {
  $this->redirect($adv_id); // sends me back to the page with the form up above
}


I'd expect the email parameter to appear but alas it does not.
Parameter, y u no stay?
blurmy23
Junior Member
 
Posts: 9
Joined: Fri May 14, 2010 6:53 am

Re: Where'd my parameter go?!

by blurmy23 » Sun Apr 10, 2011 10:51 pm

blurmy23
Junior Member
 
Posts: 9
Joined: Fri May 14, 2010 6:53 am