/** * Method to instantiate the view. * * @param array $data The data array. * @param RendererInterface $renderer The renderer engine. */ public function __construct($data = array(), RendererInterface $renderer = null) { $this->renderer = $renderer ?: new PhpRenderer(); parent::__construct($data); $this->data = new Data($this->data); }