Recommend this page to a friend! |
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
)
)
This package has no dependencies.
Instructions and files in this directory are shared under the GPL3 license.
Classes of Ali YILMAZ | > | WayMaker PHP Get Route Parameters | > | Download .zip .tar.gz | > | Support forum | > | Blog | > | Latest changes |
|
Groups | Applications | Files |
Groups |
HTTP | HTTP protocol clients, headers and cookies | View top rated classes |
PHP 5 | Classes using PHP 5 specific features | View top rated classes |
Parsers | Programming language interpreters and format parsers | View top rated classes |
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.
Download all files: waymaker.tar.gz waymaker.zip NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.
|