public function fill() { parent::fill(); if ($this->Model->isMyAccount()) { $this->set_template('profile/profile.tpl'); $this->assign('purposes_dating', PurposeDating::get_all_purposes()); } else { $this->set_template('userProfile/user_profile.tpl'); $this->assign('id', $this->Model->getProfileId()); } $this->assign('IMAGES_APP', IMAGES_APP); $this->assign('balance_value', $this->Model->get_balance()); }
public function fill() { parent::fill(); $this->set_template('main/index.tpl'); $this->assign('purposes_dating', PurposeDating::get_all_purposes()); }