0

I'm trying to create a custom multiple choice checkbox widget, that displays all items of a model.

My model is named 'Tag', which is a list of tags in my DB table.

I have copied the sfWidgetFormSelectCheckbox code and pasted it into my new widget class, but I'm unsure what to do next

Could someone help me?

Thanks

2
  • What do you want to accomplish? Why sfWidgetFormSelectCheckbox is not working for you? Commented Jan 27, 2011 at 11:17
  • This is pretty much the question you asked yesterday: symfony - embeddedForm - mulitple checkboxes Commented Jan 27, 2011 at 13:08

2 Answers 2

1

If your issue is working with tags. Best to look at sfDoctrineActAsTaggable. It should have all the behaviour you require, hence you should be able to dissect it to achieve what you are after.

Sign up to request clarification or add additional context in comments.

Comments

0

I managed to get this working using some custom code, i.e. getters and setters and overriding the doUpdateObject() and updateDefaultsFromObject methods in my form class

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.