Update 02_Routing.md

This commit is contained in:
Kairat Jenishev 2018-03-29 14:07:57 +06:00 committed by GitHub
parent 1a75a27f17
commit c4c598000b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -204,10 +204,9 @@ class FeedController extends ContentController
/* more processing goes here */ /* more processing goes here */
} }
} }
```
The YAML rule, in contrast, is simple. It needs to provide only enough The YAML rule, in contrast, is simple. It needs to provide only enough information for the framework to choose the desired controller.
information for the framework to choose the desired controller.
```yml ```yml
Director: Director:
@ -218,6 +217,7 @@ Director:
## Related Lessons ## Related Lessons
* [Creating filtered views](https://www.silverstripe.org/learn/lessons/v4/creating-filtered-views-1) * [Creating filtered views](https://www.silverstripe.org/learn/lessons/v4/creating-filtered-views-1)
* [Controller actions / DataObjects as pages](https://www.silverstripe.org/learn/lessons/v4/controller-actions-dataobjects-as-pages-1) * [Controller actions / DataObjects as pages](https://www.silverstripe.org/learn/lessons/v4/controller-actions-dataobjects-as-pages-1)
## Links ## Links
* [Controller](api:SilverStripe\Control\Controller) API documentation * [Controller](api:SilverStripe\Control\Controller) API documentation