Problem I’m trying to avoid manually updating a whitelist of pages, so I wrote the following that I might use, […]
Tag: url-routing
PHP Router for MVC
Problem I recently started developing my first serious project in PHP, a MVC completely build by myself, which is quite […]
Uri Routing PHP Code
Problem I do programing with core php & i don’t want to like use any cms or mvc framework. if […]
PHP router class
Problem I’m writing yet another MVC framework just for learning purposes and I would like you to review my code. […]
Routes for reminders
Problem I have a controller with just a few actions, not the whole 7 RESTful actions situation. Here’s what I […]
PHP code for blacklisting and rewriting/redirecting URLs
Problem We faced an issue where URLs had a wrong “subfolder” in its URL, so e.g. example.com/match1/randomgenerated should have been […]
PHP Response Wrapper
Problem I’m writing a routing system that may or may not be part of a public API later for a […]
Simple blog using react redux react-router
Problem I’ve implemented the logic of my app, but I’m not sure whether it appropriate way or not. Task: create […]
Setting controller, action, and values based on the number of URL chunks
Problem Is there any way to improve this code? It looks a bit ugly for me. if($url_chunks_num == 1) { […]
Custom route for writing friendly URLs in ASP.NET MVC 3
Problem I’m trying to build friendly URLs like /post/1/my-first-post. I started out with building my links like this: @Html.ActionLink(Model.BlogPost.Title, “Index”, […]