What is possible in ZF1 for defining / implementing the scheme for http (http or https) routes? So that the URL visual assistant automatically applied the plan to the URL creation.
My controllers already have a force hats feature, where each action can be redirected to https but it results in additional redirection.
I know that the URL view assistant does not supply the whole URL, and that serverUrl Visual Assistant is used for that
to expand the URL view assistant And there is a way to access settings in the road specifications, so look for the assistant "fallback" for the server, if the plan is specified for the route.
If you want to generate a full URL then you can see the serverUrl visual assistant in combination with URL View Assistant. Must use
$ this-> GetHelper ('serverURL') - & gt; SetScheme ('https'); $ This- & gt; Server URL () $ this- & gt; Url (array ('action' => gt; 'index'));
Comments
Post a Comment