[FLOW3-general] Re: Sub folder in Controller

Cornel Widmer cornel at kollerinternet.ch
Fri Mar 15 15:39:56 CET 2013


Hi there!

I'm facing the same problem here. As supposed I need to adjust the routes.yaml for my requirements. But I didn't get the point how they really works.

In my controller folder I want the subfolder "Administration" with many more controllers. To link to this controller I used the viewhelper "<f:link.action action="index" controller="Administration\User">Benutzer</f:link.action>"

My Apache throws the error "Not found".

I tried this way in my Routes.yaml


-
  name: 'Administration'
  uriPattern: 'administration\user'
  defaults:
    '@package': 'WS.Rico'
    '@controller': 'Administration/User'
    '@action': 'index'



But fortunatly no success :-(

Can you help me?


Quote: Christian Müller (Ki wrote on Tue, 17 July 2012 10:44
----------------------------------------------------
> Just as a side note, the way you wanted to go, should work too. So 
> having a controller:
> 
> <Vendor.Package>/Classes/Controller/Backend/AdministrationController.php
> 
> A link should work with
> 
> <f:link.action action="index" controller="Backend\Administration">
> 
> but you probably need to provide a route for it as it might not be picked up by FLOW3s default routes.
> 
> Cheers,
> Christian
> 
> On 16/07/12 22:15, Martin wrote:
> <font color="8c8c8c">>  Hey Jeff,</font>
> <font color="8c8c8c">> </font>
> <font color="8c8c8c">>  thanks.</font>
> <font color="8c8c8c">> </font>
> <font color="8c8c8c">>  I'll implement ur sugestion :)</font>
> <font color="8c8c8c">> </font>
> <font color="8c8c8c">>  Greetz</font>
> <font color="8c8c8c">> </font>
> <font color="8c8c8c">>  Martin</font>
> <font color="8c8c8c">> </font>
> <font color="8c8c8c">> </font>
> <font color="8c8c8c">>  how can i access a subfolder in Controllers?</font>
> <font color="8c8c8c">> </font>
> <font color="8c8c8c">>  I want to organize my controllers a little bit, but we don't become</font>
> <font color="8c8c8c">>  friends.</font>
> <font color="8c8c8c">> </font>
> <font color="8c8c8c">>  What do I have to do, to get for examlple</font>
> <font color="8c8c8c">>  Controllers/Administration/AdministrationController running.</font>
> <font color="8c8c8c">> </font>
> <font color="8c8c8c">>  In the View I tried: <f:link.action action="index"</font>
> <font color="8c8c8c">>  controller="Administration[/,\]Administration"</font>
> 
> 
> -- 
> Christian Mueller
> TYPO3 Core Team
> 
> TYPO3 .... inspiring people to share!
> Get involved: typo3.org
----------------------------------------------------




More information about the FLOW3-general mailing list