[Solved] How to create php class for navigation action
Assume we have the following rewrite rule; RewriteEngine On RewriteRule ^([^/]*)$ /index.php?module=$1 [L,QSA] This will rewrite a request like; http://example.php/index.php?module=about to http://example.php/about Now, let’s see how the Router is done; It’s very basic Can be improved a lot <?php class Router { private $strModule; //Holds the module to load (the page) public function __construct(){} public … Read more