[TYPO3-mvc] Setting controller and action from URL
Søren Malling
soren.malling at gmail.com
Fri May 7 14:31:14 CEST 2010
Bump :-)
I've pasted the TypoScript i'm using to declare the page typeNum
http://www.phlogi.net/f/t3/tsp/sp/-2f1d4da5b9/
Line 23 + 24 isn't "activated" even though the controller and actions
are entered in the url
The meaning is, to get this working as a sort of "webservice"
Hope someone can either tell me, that it's not possible to have more
switchableControllerActions or tell me how to define them properly.
Regards,
Søren
On Tue, May 4, 2010 at 3:18 PM, Søren Malling <soren.malling at gmail.com> wrote:
> 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
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>
--
Officially Certified TYPO3 Integrator
More information about the TYPO3-project-typo3v4mvc
mailing list