symfony - Symfony2: Dynamically generate URL protocol (HTTP/HTTPS) -


i know many ways of forcing route or whole section use either http or https:

http://symfony.com/doc/current/cookbook/routing/scheme.html

http://symfony.com/doc/current/cookbook/security/force_https.html

how let symfony 2 adopt protocol scheme (http vs https)

...my question is: there way decided dynamically?

by this, mean, when generate url {{url('route_name'}} generates url using same protocol current page using.

http://domain/index links to http://domain/route

https://domain/index links to https://domain/route


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -