"Hello World" routing
Simple "Hello World" plugin, which illustrates URL routing.
Features
Shows developers how to create minimal URL routing plugin. Includes a simple router with optional parameters.
Install
- Upload HelloWorldRouting directory to your website's Plugin directory.
- Login to the administration area.
- Go to Plugins panel, locate Hello World routing plugin and click activate button.
Usage
- Type the following text in your browser's address bar: http://www.example.com/hellorouter. The browser displays text Hello World!
- Now specify the first parameter http://www.example.com/hellorouter/John. The browser displays text Hello John!
- The example uses a second parameter as a last name, http://www.example.com/hellorouter/John/Smith. The browser displays text Hello John Smith!