prepareDisplay(); $userFactory = new CommonClubsModelFactoryUser(); $this->users = $userFactory->loadElements(); if($this->isNew) { } else { // $offers = ClubsOffer::loadOffers(); // $currentOffers = $this->object->getOffers(); // $this->offers = array_map(function($offer) use ($currentOffers){ // $mark = False; // return array('offer'=>$offer, 'mark'=>$mark); // }, $offers); } parent::display($tpl); } protected function getViewName() { return 'club'; } protected function getElementController() { return new ClubsControllerClub(); } }