[TYPO3-mvc] initializeAction with getArguments triggers fatal error
Tomiţă MILITARU
tomita.militaru at gmail.com
Wed May 15 09:19:09 CEST 2013
Hi Gianluca,
The problem was that in my controller I had my own $arguments variable
defined and it was interfering with $arguments from AbstractController I
think, since simply renaming the variable solved the problem.
On Wed, May 15, 2013 at 10:12 AM, Gianluca Strafella <
gianluca.strafella at webformat.com> wrote:
> Hi,
> are you sure your error is in initializeAction ? Are you doing an
> Tx_Extbase_MVC_**RequestInterface custom implementation ? In standard
> framework class extbase/Classes/MVC/Request.**php the method getArguments
> returns simply "arguments" value ...
>
> If you need check the argument XXX existence you can check argument in
> action with $this->request->hasArgument('**XXX').
>
> Regards,
> Gianluca
>
> Il 11/05/2013 15:27, Tomita Militaru ha scritto:
>
> Hello,
>>
>> I have the following code in initializeAction:
>> http://pastebin.com/PNg8wEmM
>>
>> But I get the following error:
>> Fatal error: Call to a member function getArgumentNames() on a non-object
>>
>> I read that the arguments are ready in initializeAction:
>> http://docs.typo3.org/**typo3cms/ExtbaseFluidBook/b-**
>> ExtbaseReference/Index.html#**id23<http://docs.typo3.org/typo3cms/ExtbaseFluidBook/b-ExtbaseReference/Index.html#id23>
>>
>>
>> Can someone help me, what am I doing wrong?
>>
>> Thanks.
>>
>>
> --
> Gianluca Strafella
>
> Software Developer
> gianluca.strafella at webformat.**com <gianluca.strafella at webformat.com>
> Tel. +39-0427-926.389
>
> WEBFORMAT srl – www.webformat.com
> Via S. Francesco d'Assisi, 6 – 20122 MILANO
> Corte Europa, 12 - 33097 SPILIMBERGO (PN)
>
>
> ______________________________**_________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc@**lists.typo3.org<TYPO3-project-typo3v4mvc at lists.typo3.org>
> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**
> project-typo3v4mvc<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc>
>
--
Engr. Tomiţă MILITARU
Certified TYPO3 Integrator
Tel. +40741064681
More information about the TYPO3-project-typo3v4mvc
mailing list