PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Ali YILMAZ   WayMaker PHP Get Route Parameters   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: WayMaker PHP Get Route Parameters
Parse request route path to extract its parameters
Author: By
Last change:
Date: 2 years ago
Size: 797 bytes
 

Contents

Class file image Download

What is wayMaker ?

It is used to separate the way and parameters.

data:

$str = 'app/controller:insert@redirect';
// $str = 'app/controller:insert';
// $str = 'app/controller';

Out-of-class use:

code:

require_once('Mind.php');
$m = new Mind();
print_r($m::aliyilmaz('wayMaker')->wayMaker($str));

When using it in the class:

code:

print_r(self::aliyilmaz('wayMaker')->wayMaker($str));

output:

Array
(
    [way] => app/controller
    [params] => Array
        (
            [0] => insert
            [1] => redirect
        )

)

Dependencies

This package has no dependencies.

License

Instructions and files in this directory are shared under the GPL3 license.