TheTrooper123
-
Posts
1 -
Joined
-
Last visited
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Dynamic PHP router
in PHP Coding Help
Posted
Hi all, I have built a basic router for my slug urls to work. However I'm trying to make it so that if a page is created (maybe for a blog) that the router would automatically work without have to hard code it in.
This is my current code where I've hard coded the link 'post-one' to work:
The below code won't work but hopefully gives an idea what I am trying to acheive where if a new post is created the 'page_slug' is retrieved and the dynamic link is created. Anyone know how something like this could work?
Any help most appriciated.