Skip to content

Instantly share code, notes, and snippets.

@cirpo
Created July 4, 2010 16:47
Show Gist options
  • Save cirpo/463575 to your computer and use it in GitHub Desktop.
Save cirpo/463575 to your computer and use it in GitHub Desktop.
<?php
/* nella tua action */
public function executeFoo()
{
$this->form = myWonderfulForm($this->getUser());
}
/*nella tua myWonderfulForm*/
class myWonderfulForm extends BaseContactsForm
{
private $user;
public function __construct(sfUser $user, $object = null, $options = array(), $CSRFSecret = null)
{
$this->user = $user;
parent::__construct($object = null, $options = array(), $CSRFSecret = null);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment