All talks > Talks tagged with request

 
 
Send the selected option name to annotations (Route)

Hey I am trying to get the selected option value in my route (annotation). I have Portfolio Controller which contains Index view. Inside the index view there is a form with only one select drop down. Initially the URL looks like http://localhost/idp/web/app_dev.php/portfolio/ T[...]

Symfony 2 forms - partial object update

Given a typical Doctrine entity used to manage say user accounts, suppose I want to provide registered users with a form which consists solely of a field used to modify their professional bio. This means only the description would be passed back to the update action: public functi[...]

How do you create a button that resets the form to the empty_value in symfony/twig?

I have a form that I'm creating that has an empty_value for each option. I want a reset button that defaults to that option. The typical form reset button only resets to what the most recent POST request was. Is there a way to access to access that empty_value?

symfony 2 form display default value

I'm working with Symfony 2.0.14 and I would like to display the default value in my form template. Well a FormType is bound to an entity, when I want to add extra field, I know the option property_path = false allow to add non-entity fields, right ? When I m in the opposite case,[...]

How to do Password Reset in Symfony 1.4 (Without using a sfPlugin)

I want to add Reset Password option for my User login module , So that i've Followed Askeet Tutorial (symfony 1.o)here the tutorial which i'd followed But i'm getting errors .When i click forgot password it redirect to "Password request Action" im getting error "Fatal error: Call [...]

Extending Symfony 2 request service?

I'm following How to Override any Part of a Bundle page on Symfony 2 website. This is interesting: You can set the parameter holding the service's class name to your own class by setting it in app/config/config.yml. This of course is only possible if the class name is defin[...]

Symfony2 inconsistent form bind and persist behavior, entities associations not consistent

I have an Entity that belongs to one or many categories, and each entity (Boom) has many properties or subelements (Boomelement), in this case they should be 7. When I try to persist the entities depending on the order I do I get different results: 1. If I make an empty entity, b[...]

How to save an sfForm which contains doctrine embedded forms?

I have a doctrine form (KanoonGoodForm) based on KanoonGood model class, which looks like this: class KanoonGoodForm extends BaseKanoonGoodForm { public function configure() { $this->widgetSchema['count_num']->setAttribute('size', '1'); $this->widget[...]

Symfony: Error Flash Message is not cleared after the 1st response

My observation is that - in most scenarios - after a ERROR user flash is set, it is not cleared on the immediate request, but on the request after that. For example, an object is not found and I set "Unknown object" in the action and redirect, it is shown on the page. It also rema[...]

refresh div with jq_form_remote_tag

Two pictures. Problem take a look down under. I do have the following code in my template - thanks a lot again to j0k: <div id="listdiv"> echo jq_form_remote_tag(array( 'update' => 'listdiv', 'url' => 'shoppinglist/update', 'loading' => jq_visual_ef[...]

 
 
 
 
Want to support this service?