Created
June 19, 2014 13:30
-
-
Save markbalt/7cb088c4b31ae76e4034 to your computer and use it in GitHub Desktop.
Render Modal form with widget field that requires renderJS
This file contains 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 | |
protected function executeModalFormAjax(sfWebRequest $request) | |
{ | |
eval(sprintf | |
( | |
'$form = new %sForm();', | |
$request->getParameter('form') | |
)); | |
return (string) $form.' <script>'.$form['user_id']->renderJS().'</script>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment