kbond / ZenstruckFormBundle

Provides Twitter Bootstrap form theme, a help type extension, Ajax/Tunnel/Select2 entity form types and javascript helpers
25 stars 14 forks source link

Little typo in ajax_entity example for the 'extra_data' option #40

Closed Veve2 closed 9 years ago

Veve2 commented 9 years ago

Hi again,

In the AjaxEntityType example,

// 'extra'          => array() // for adding extra data in the ajax request (only applicable when using repo_method)

Should be

// 'extra_data'          => array() // for adding extra data in the ajax request (only applicable when using repo_method)

Maybe also add this option to the FormType options list

BTW, how to use this extra_data parameter in my custom repo_method?

Veve

kbond commented 9 years ago

Thanks!

Veve2 commented 9 years ago

Nice :)

Could you please hint me how to get the extra_data in my custom repo_method? I've seen q is passed to the repository but I can't access the extra_data passed. (Using ùse_controller`: true)

Veve

kbond commented 9 years ago

You are using the repo_method option as well?