Tags

Two ways to generate a URL in your sf_Actions and don’t escape the & symbol

1.
$this->rehearsalUrl = $this->getController()->genUrl("rehearsal/treepopup?studyunit_id={$this->studyunitId}&source_id={$this->source_id}&subject_id={$this->subject_id}");

2.
$subject_cached = $this->generateUrl('subject_cached', array('id' => $subject_id, 'user_id'  => $user->getId()), true);
$this->redirect($subject_cached);
Advertisements