// Set your own variables that will be exposed in the template // The following will expose "foo" and "complex" variables in the view template. $contentView->addParameters( array( 'foo' => 'bar', 'complex' => $someObject ) );