thephpleague / omnipay-example

Example application for Omnipay PHP payments library
MIT License
100 stars 50 forks source link

Add baseurl to all URLs in templates and redirects. #4

Closed judgej closed 9 years ago

judgej commented 9 years ago

https://github.com/thephpleague/omnipay-example/issues/3

Here you go - take it or leave it :-)

I personally find the example application very useful when developing on a gateway, and also as the first point of call when trying to understand OmniPay for the first time. There are so many different platforms to develop on these days, that it helps to have this flexibility. I tend to have so many things on the go at once, that it is easier to plonk a bunch of projects on one server than to have a gazzillion servers brought up all over the place. But YMMV, naturally :-)

I've tested this in a sub-directory and also the root folder of a domain, with mod_php 5.4, and it works for me, though there could always be some path I've not taken into account.

greydnls commented 9 years ago

Thanks @judgej !

judgej commented 9 years ago

Thanks :-)

I've just tested it from the command line on a non-GUI server using php -S localhost:8081 and the lynx text browser. It looks rather nice like that.