how to modify this code: elgg_view_layout

I find the code in the plugin: 'event_calendar':

$body = elgg_view_layout('two_column_left_sidebar', $area1,$area2);

It doesn't work,So i changed it like this:

$params = array(
    'content' => $area1,
    'sidebar' => $area2
    );
$body = elgg_view_layout('one_sidebar', $params);

but there is nothing output to the page, how to modify the code correctly?

Feedback and Planning

Feedback and Planning

Discussions about the past, present, and future of Elgg and this community site.