This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Redirection: | |
| columns: | |
| path_info: { type: string(255) } | |
| redirect_to: { type: string(255) } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // apps/frontend/modules/default/actions/actions.class.php | |
| class defaultActions extends sfActions | |
| { | |
| public function executeCatchall(sfWebRequest $request) | |
| { | |
| // find your redirectation using $request->getPathInfo() | |
| $redirection = Doctrine_Core::getTable('Redirection') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # apps/frontend/config/routing.yml | |
| your_other_routes_here: ~ | |
| # generic rules | |
| # please, remove them by adding more specific rules | |
| # default_index: | |
| # url: /:module | |
| # param: { action: index } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class defaultActions extends sfActions | |
| { | |
| public function executeIndex(sfWebRequest $request) | |
| { | |
| $this->form = new UserForm(); | |
| $this->form->getEmbeddedForm('entry') | |
| ->getWidget('cars') | |
| ->setOption('choices', $this->getUser()->getAttribute('cars')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class defaultActions extends sfActions | |
| { | |
| public function executeIndex(sfWebRequest $request) | |
| { | |
| $this->form = new UserForm(); | |
| $this->form->getEmbeddedForm('entry') | |
| ->getWidget('cars') | |
| ->setOption('choices', $this->getUser()->getAttribute('cars')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class EntryForm extends BaseEntryForm | |
| { | |
| public function configure() | |
| { | |
| $this->widgetSchema['cars'] = new sfWidgetFormChoice(array( | |
| 'choices' => array(), | |
| 'expanded' => true | |
| )); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| if(Validate::email($email,true)) | |
| { | |
| // add to database | |
| return true; | |
| } | |
| else | |
| { | |
| // return error | |
| return false; |