While working on my website after some time of non-maintenance, I noticed that I had previously been hand coding the links to blog posts I had made...
For further actions, you may consider blocking this person and/or reporting abuse
You can just get the current page with
Hey Hammed, thanks for the comment!
I didn't want to add the use of super globals like
$_GET
,$_POST
,$_SESSION
, etc since this class should be framework agnostic. By this, I mean, for example you could do any of the following:Using PHP:
Using the Flight framework:
Using the Symfony framework:
The idea, in short, was to not bias anyones implementation choice but merely to show a reusable class that we will build on top of in later posts and that anyone can use, anywhere. I hope that clears up things a bit for anyone else reading the post and this comment later too ๐.