public function __construct($viewName, array $attributes = array()) { if (empty($viewName)) { throw new ViewException('View name is empty'); } $this->_viewName = $viewName; $this->_attributes = $attributes; $this->_loadHelpers(); }