Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 14340

URL routing lets you configure an application to accept request URLs that do not map to physical files.

3 votes
4 answers
399 views

Setting controller, action, and values based on the number of URL chunks

Is there any way to improve this code? It looks a bit ugly for me. if($url_chunks_num == 1) { $this->controller = $this->pageData[0]; } elseif($url_chunks_num == 2) { $this->controller = $thi …
grjj3's user avatar
  • 141