Merge pull request #7969 from xcopy/patch-2

Update 02_Routing.md
This commit is contained in:
Loz Calver 2018-03-29 09:15:54 +01:00 committed by GitHub
commit e3b9fb3036
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