protected function action() { $this->showContentOnly = TRUE; try { $idntwrkr = $this->uriPath[count($this->uriPath) - 4]; $fullname = $this->uriPath[count($this->uriPath) - 3] . ' ' . $this->uriPath[count($this->uriPath) - 2]; $avatar = Utente::decode($this->uriPath[count($this->uriPath) - 1]); } catch (Exception $exc) { $idntwrkr = NULL_PARENT_ROOT; $fullname = NON_DEFINITO; $avatar = Utente::getDefaultAvatarUrl(); } $this->addParameter('idntwrkr', $idntwrkr); $this->addParameter('fullname', $fullname); $this->addParameter('avatar', $avatar); $this->pageToView = "addntwrkrsale"; parent::action(); }
protected function action() { $this->showContentOnly = TRUE; try { $parent = $this->uriPath[count($this->uriPath) - 4]; $sponsor = $this->uriPath[count($this->uriPath) - 3] . ' ' . $this->uriPath[count($this->uriPath) - 2]; $avatar = Utente::decode($this->uriPath[count($this->uriPath) - 1]); } catch (Exception $exc) { $parent = NULL_PARENT_ROOT; $sponsor = NON_DEFINITO; $avatar = Utente::getDefaultAvatarUrl(); } $this->addParameter('parent', $parent); $this->addParameter('sponsor', $sponsor); $this->addParameter('avatar', $avatar); $this->pageToView = "newuser"; parent::action(); }