Skip to content

Instantly share code, notes, and snippets.

@nixilla
Created December 12, 2012 10:28
Show Gist options
  • Select an option

  • Save nixilla/4266711 to your computer and use it in GitHub Desktop.

Select an option

Save nixilla/4266711 to your computer and use it in GitHub Desktop.

Revisions

  1. nixilla created this gist Dec 12, 2012.
    12 changes: 12 additions & 0 deletions defaultActions3.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    <?php

    class defaultActions extends sfActions
    {
    public function executeIndex(sfWebRequest $request)
    {
    $this->form = new UserForm();
    $this->form['entry']['cars']
    ->getWidget()
    ->setOption('choices', $this->getUser()->getAttribute('cars'));
    }
    }