Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Config option to set TreeRouteStack::baseUri #51

Open
Erikvv opened this issue Sep 9, 2018 · 1 comment
Open

Config option to set TreeRouteStack::baseUri #51

Erikvv opened this issue Sep 9, 2018 · 1 comment

Comments

@Erikvv
Copy link

Erikvv commented Sep 9, 2018

In every project I see people working around the Url ViewHelper not working in console context.

If there was a config option like below we could have one standardized way of solving this.

<?php // config/autoload/server-url.local.php

return [
    'server_url' => 'https://example.com'
]

Example of my latest workaround: https://stackoverflow.com/a/52248041/1899162

Secondarily we could then also use this option to make the ServerUrl ViewHelper work in console context.

@weierophinney do you want this PR for this repository or for Zend\View?

@weierophinney
Copy link
Member

This repository has been closed and moved to laminas/laminas-router; a new issue has been opened at laminas/laminas-router#3.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants