[Flow] How to set the action of a widget controller that is being called?
Christian Loock
chl at vkf-renzel.de
Wed Aug 28 15:27:55 CEST 2013
Hi,
so i finally got things to work, except one thing:
Redirects in the Widget Controller do not work.
I only get a white page.
Is this a known issue or is this intended behaviour?
Am 28.08.2013 12:54, schrieb Christian Loock:
> You can change the controller, as I wrote in my previous mail. But if
> it works for the default action it calls, i dont know.
>
> However, when a view of the widget controller controlls a link to
> another action of the widget controller, it will actually work. It
> opens the site that contained the widget but render the widgets action
> that has been linked to.
>
> Did I allready mention that Flow is awesome? :D
>
> Am 28.08.2013 12:49, schrieb Stephen Bungert:
>> I don't think you can change the controller, I think I read in another
>> thread that is hard coded to use index.
>>
>> Stephen.
>> "Christian Loock" <chl at vkf-renzel.de> schrieb im Newsbeitrag
>> news:mailman.9774.1377685466.570.flow at lists.typo3.org...
>>> Oh and also I would like to ask, if it is possible to change a widgets
>>> controller at runtime.
>>>
>>> Something like that:
>>>
>>> /**
>>> * @param $controller String
>>> * @param $arguments Array
>>> */
>>> public function render($controller, $arguments) {
>>>
>>> $this->controller = $this->objectManager->get($controller);
>>> $this->initiateSubRequest();
>>> }
>>>
>>> This gives me the following error:
>>>
>>> *Notice: Undefined index: controllerName in
>>> /home/www/flow_vkf_search_chl/Data/Temporary/Development/Cache/Code/Flow_Object_Classes/TYPO3_Flow_Mvc_ActionRequest.php
>>>
>>> line 299*
>>>
>>> Am 28.08.2013 12:00, schrieb Christian Loock:
>>>> Hello fellow Flowers,
>>>>
>>>> I have a little question regarding Widget ViewHelpers.
>>>>
>>>> Is it possible to determine, which action of the widget controller is
>>>> being called by the widgets subrequest?
>>>>
>>>> Greetings,
>>>>
>>>> Christian
>>>> _______________________________________________
>>>> Flow mailing list
>>>> Flow at lists.typo3.org
>>>> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
>>
>> _______________________________________________
>> Flow mailing list
>> Flow at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
>
> _______________________________________________
> Flow mailing list
> Flow at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
More information about the Flow
mailing list