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