[TYPO3-mvc] Setting controller and action from URL

Søren Malling soren.malling at gmail.com
Tue May 4 15:18:31 CEST 2010


Hi,

I'm having this challenge with a "webservice" that I'm building.

On a page I have the following TS

http://www.phlogi.net/f/t3/tsp/sp/-a0b0621d78/

I would expect that i could call the different controller and action
combination that I've defined through my url ex:

index.php?id=226&type=1272963739&no_cache=1&tx_groupmembers_pi1[action]=edit&tx_groupmembers_pi1[controller]=District&tx_groupmembers_pi1[district]=6

and this would run the editAction in my DistrictController.php file

Unfortunately I get the following error returned

An error occurred while trying to call
Tx_Ysmenmembers_Controller_Pi1Controller->editAction(). Error:
Required property 'member' does not exist.

The Pi1 is written in the TypoScript configuration you can see above,
and if i remove the two settings, I simply gets a blank page.

If i put this on  a page as a plugin content element (not on a typeNum
different from 0), the link returns the fluid form with no problem.

How can i make it run the editAction from my DistrictController.php
and not Pi1Controller.php using the dispatcher approach?

Regards,

Søren

-- 
Officially Certified TYPO3 Integrator


More information about the TYPO3-project-typo3v4mvc mailing list