File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -40,15 +40,18 @@ http://mysite.tld/ \<controller>/\<action>
40
40
And it will load the class \Project\Controller\\\< controller>::\< method>\< action>Action
41
41
42
42
You can easily configure your namespace, controller package and action suffix!
43
+
43
44
* \< method>* represents the HTTP method used (usually * get* but you can use post/update/delete etc...). This is optional.
44
45
45
46
Either \< controller> or \< action> are optional and considered as 'index' if not defined.
46
47
47
48
Therefore
48
49
49
- url | class::method
50
- ------------------------------------------ | ---------------------------------------
51
- http://mysite.tld/ | \Project\Controller\Index::indexAction
52
- http://mysite.tld/test | \Project\Controller\Test::indexAction
53
- http://mysite.tld/test/action | \Project\Controller\Test::actionAction
54
- http://mysite.tld/also/work/with/full/path | \Project\Controller\Also\Work\With\Full::pathAction
50
+ url | class::method
51
+ ---------------------------------------------- | ---------------------------------------
52
+ http://mysite.tld/ | \Project\Controller\Index::indexAction
53
+ http://mysite.tld/test | \Project\Controller\Test::indexAction
54
+ http://mysite.tld/test/action | \Project\Controller\Test::actionAction
55
+ http://mysite.tld/also/work/with/full/path | \Project\Controller\Also\Work\With\Full::pathAction
56
+ http://mysite.tld/my/normal | \Project\Controller\My::getNormalAction
57
+ http://mysite.tld/my/normal (with HTTP post) | \Project\Controller\My::postNormalAction
You can’t perform that action at this time.
0 commit comments