How to get the full path instead of basepath


#1

Hi,

How to resolve the pathFor() into a full path instead of just the basepath.

thanks


#2

There really isn’t a built in way to handle this. See the following for some discussions about it and some possible workarounds.


#3

Thanks, yes i did read those before. but did not found those back when i needed them.
I dont think this is an issue of the renderers like twig-view, but a issue in slim it self.

however after some code reviewing i found that the uri class has also the Method getBaseUrl() in my opinion that should be used to set the routers basepath. After i changed it the paths were correctly shown. everywhere.