Esempio n. 1
0
 /**
  *
  * @param ViewHelper $viewHelper
  */
 public function __construct(ViewHelper $viewHelper)
 {
     $this->registry = RegistryFactory::start();
     $this->viewHelper = $viewHelper;
     $this->http = $this->registry->get('http');
     $this->conf = new Conf();
     $this->conf->configureThemePath();
 }
Esempio n. 2
0
 /**
  * Sets instance of User class
  */
 public function loadUser()
 {
     $this->registry->set('user', new User());
     $this->user = $this->registry->get('user');
 }