Skip to content
This repository has been archived by the owner on Feb 20, 2020. It is now read-only.

public function route($path) { } #32

Open
MrAndreius opened this issue Sep 11, 2012 · 0 comments
Open

public function route($path) { } #32

MrAndreius opened this issue Sep 11, 2012 · 0 comments

Comments

@MrAndreius
Copy link

Theoretically, we can have a router
request this form site.com/ / slug1 / / / slug2 / slug3 / / / slug4 / / / slug5/slug6 / / / slug7 /

appropriate to hold two operations

public function route($path) {
$path = array_filter(explode('/',$path));
}

result

Array
(
[2] => slug1
[5] => slug2
[8] => slug3
[11] => slug4
[14] => slug5
[15] => slug6
[18] => slug7
)

with whom to work on

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant