"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Neos.Flow/Documentation/TheDefinitiveGuide/PartIII/ModelViewController.rst" between
flow-development-collection-5.2.1.tar.gz and flow-development-collection-5.2.2.tar.gz

About: TYPO3 Flow is a web application platform enabling developers creating fast, reliable and complex web solutions ("the next level of PHP programming"; old name "FLOW3").

ModelViewController.rst  (flow-development-collection-5.2.1):ModelViewController.rst  (flow-development-collection-5.2.2)
skipping to change at line 625 skipping to change at line 625
the view supports. the view supports.
The general syntax of a view configuration looks like this: The general syntax of a view configuration looks like this:
.. code-block:: yaml .. code-block:: yaml
- -
requestFilter: 'isPackage("Foreign.Package") && isController("Standard" )' requestFilter: 'isPackage("Foreign.Package") && isController("Standard" )'
viewObjectName: 'Neos\Fusion\View\FusionView' viewObjectName: 'Neos\Fusion\View\FusionView'
options: options:
fusionPathPattern: 'resource://My.Package/Private/Fusion' fusionPathPatterns:
- 'resource://Neos.Fusion/Private/Fusion'
- 'resource://My.Package/Private/Fusion'
fusionPath: 'yourProtoype'
The requestFilter is based on Neos.Eel allowing you to match arbitrary requests The requestFilter is based on Neos.Eel allowing you to match arbitrary requests
so that you can override View configuration for various scenarios. so that you can override View configuration for various scenarios.
You can combine any of these matchers to filter as specific as you need: You can combine any of these matchers to filter as specific as you need:
* isPackage("Package.Key") * isPackage("Package.Key")
* isSubPackage("SubPackage") * isSubPackage("SubPackage")
* isController("Standard") * isController("Standard")
* isAction("index") * isAction("index")
* isFormat("html") * isFormat("html")
skipping to change at line 681 skipping to change at line 684
+----------------------------+------------+ +----------------------------+------------+
If the package is "My.Foo" and the Format is "html" the result will be 10001 If the package is "My.Foo" and the Format is "html" the result will be 10001
.. note:: .. note::
Previously the configuration of all matching ``Views.yaml`` filters was m erged. Previously the configuration of all matching ``Views.yaml`` filters was m erged.
From version 4.0 on only the matching filter with the highest weight is r espected From version 4.0 on only the matching filter with the highest weight is r espected
in order to reduce ambiguity. in order to reduce ambiguity.
The fusionPathPatterns has to contain the Root-Fusion and the path to Fusion-Fol
der which contains your Prototype. Your Prototype gets searched recursively by f
usionPath.
Controller Context Controller Context
~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
The Controller Context is an object which encapsulates all the controller-relate d The Controller Context is an object which encapsulates all the controller-relate d
objects and makes them accessible to the view. Thus, the ``$this->request`` prop erty objects and makes them accessible to the view. Thus, the ``$this->request`` prop erty
of the controller is available inside the view as of the controller is available inside the view as
``$this->controllerContext->getRequest()``. ``$this->controllerContext->getRequest()``.
Validation Validation
---------- ----------
 End of changes. 2 change blocks. 
1 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)