|
|
@ -35,6 +35,9 @@ class SiteController extends Controller |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
As you can see, typical controller contains actions that are public class methods named as `actionSomething`. |
|
|
|
As you can see, typical controller contains actions that are public class methods named as `actionSomething`. |
|
|
|
|
|
|
|
The output of an action is what the method returns. The return value will be handled by the `response` application |
|
|
|
|
|
|
|
component which can convert the output to differnet formats such as JSON for example. The default behavior |
|
|
|
|
|
|
|
is to output the value unchanged though. |
|
|
|
|
|
|
|
|
|
|
|
Routes |
|
|
|
Routes |
|
|
|
------ |
|
|
|
------ |
|
|
@ -183,7 +186,6 @@ Filters |
|
|
|
Catching all incoming requests |
|
|
|
Catching all incoming requests |
|
|
|
------------------------------ |
|
|
|
------------------------------ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
See also |
|
|
|
See also |
|
|
|
-------- |
|
|
|
-------- |
|
|
|
|
|
|
|
|
|
|
|