
Hi Kiffin, could you please provide more details of your code? Have you set $Self->{LayoutObject}? Usually it is done in the constructor (aka subroutine "new"). The LayoutObject should be passed to the constructor (in the %Param hash), but you have to save it in the object yourself. Cheers, Renée Kiffin Gish schrieb:
I'm trying to write my own OTRS module based on chapter 13 of the Developer Manual. However, although I feel I've followed the instructions exactly, I still get the following error message:
Can't call method "Header" on an undefined value at ../..//Kernel/Modules/AgentHelloWorld.pm line 38.
This corresponds with the following line:
sub Run { ... line 38: my $Output = $Self->{LayoutObject}->Header(Title => "HelloWorld");
Any ideas what I might be doing wrong? Could it be that the layout object isn't being initialized properly?
-- Perl-Magazin: http://perl-magazin.de Perl-Nachrichten: http://perl-nachrichten.de