No I wasn't: I added a
$this->loadLayout('default');
before the call, and now it works exactly as expected.
Thanks!!
Michal.
On 2 Mar 2009, at 22:56, David Zülke wrote:
> On 02.03.2009, at 21:31, Michal Charemza wrote:
>
>> However I suspect that I have not setup the layout properly. In
>> executeJson I call
>>
>> $this->getLayer('content')->setTemplate('comment');
>>
>> but I get the error:
>>
>> Call to a member function setTemplate() on a non-object
>>
>> So it looks like I don't have a layer 'content'. Can I ask how to
>> properly setup this content layer?
>
> Are you loading a layout before you do this?
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.agavi.org/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users