assign('error_field_1', $sf_request->getError('my_form{field_1}')); $smarty->assign('input_field_1', input_tag('my_form[field_1]', $sf_params->get('my_form[field_1]'), array('id'=>'st_form-modal-field_1', 'placeholder'=>__('My modal'), 'maxlength'=>'255', 'class'=>'form-control'))); $smarty->assign('my_form_data', $my_form_data); $modal_tpl = 'modal_form_'.$modal.'.html'; $smarty->display($modal_tpl); ?>