Example #1
0
 /**
  * Inject the element into presenter
  */
 protected function initPresenter()
 {
     if ($this->name && $this->open->isSubmitted()) {
         $this->error = $this->dataStore->getError($this->name);
     }
     $this->presenter->setElement($this);
 }