symfony2 - Global Params in FOSUserBundle -
i seek retrieve global param define in parameters.yml , config.yml
in fosuserbundle.en.yml under registration, in message seek pass %myparam% , in email.txt seek pass %myparam%:param this
{{ 'registration.email.message'|trans({'%username%': user.username, '%confirmationurl%': confirmationurl,'%myparam%':myparam}, 'fosuserbundle') }}
but dosen't works. , can insert html within yml , new line? thanks
in config.yml under fosuserbundle configuration.
confirmation: enabled: true template: mymailbundle:registration:email.html.twig
by doing creating twig template can render variables , format html how want.
if want create newline in yml file think adding \n.
symfony2 fosuserbundle
No comments:
Post a Comment