[FLOW3-general] No controller youl be resolved for routeParts

Andreas Beyl beyl at stimme.net
Wed Nov 21 15:31:03 CET 2012


> Bastian Waidelich wrote:
>
>> Most probably the
>> Flow default routes. You shouldn't include them in your own applications.
>
> ..or at least *underneath* your custom routes. So in your global
> Configuration/Routes.yaml:
>
> -
>     name: 'MyPackage Routes'
>     uriPattern: '<MyPackageSubroutes>'
>     subRoutes:
>       MyPackageSubroutes:
>         package: My.Package
>
> ##
> # Flow subroutes
> #
>
> -
>     name: 'Flow'
>     uriPattern: '<FlowSubroutes>'
>     defaults:
>       '@format': 'html'
>     subRoutes:
>       FlowSubroutes:
>         package: TYPO3.Flow
>
>

Well, the global Routes.yaml contains this:

-
   name: 'GoalKeeper'
   uriPattern: '<GoalKeeperSubroutes>'
   defaults:
     '@format': 'json'
   subRoutes:
     GoalKeeperSubroutes:
       package: SNET.GoalKeeper

-
   name: 'Welcome'
   uriPattern: '<WelcomeSubroutes>'
   subRoutes:
     WelcomeSubroutes:
       package: TYPO3.Welcome
#
##
# Flow subroutes
#

-
   name: 'Flow'
   uriPattern: '<FlowSubroutes>'
   defaults:
     '@format': 'html'
   subRoutes:
     FlowSubroutes:
       package: TYPO3.Flow



And the Routes.yaml inside my application looks like this:

-
   name: 'Season REST API POST call'
   uriPattern: 'seasons'
   defaults:
     '@package': 'SNET.GoalKeeper'
     '@controller': 'Season'
     '@action': 'index'
     '@format': 'json'
-
   name: 'Season REST API GET/PUT/DELETE calls'
   uriPattern: 'seasons/{season}'
   defaults:
     '@package': 'SNET.GoalKeeper'
     '@controller': 'Season'
     '@action': 'index'
     '@format': 'json'
-
   name: 'League REST API POST call'
   uriPattern: 'seasons/{season}/leagues'
   defaults:
     '@package': 'SNET.GoalKeeper'
     '@controller': 'League'
     '@action': 'index'
     '@format': 'json'
-
   name: 'League REST API GET/PUT/DELETE calls'
   uriPattern: 'leagues/{league}'
   defaults:
     '@package': 'SNET.GoalKeeper'
     '@controller': 'League'
     '@action': 'index'
     '@format': 'json'
   routeParts:
     league:
       objectType: 'SNET\GoalKeeper\Domain\Model\League'
       uriPattern: '{urisegment}'



More information about the FLOW3-general mailing list