Ejemplo n.º 1
0
 /** @inheritdoc */
 public function output(Router $router)
 {
     $layout = new BasicLayout();
     $layout->addVariable('menu', '');
     $layout->addVariable('content', $this->text);
     echo $layout->getRendering();
 }
Ejemplo n.º 2
0
 /** @inheritdoc */
 public function output(Router $router)
 {
     $layout = new BasicLayout();
     $layout->setRouter($router);
     $layout->addVariable('menu', '');
     $layout->addVariable('username', $this->username);
     $layout->addVariable('password', $this->password);
     $layout->addVariable('message', $this->message);
     $loginPartial = $this->preparePartial(new LoginFormPartial($layout));
     $layout->addPart('content', $loginPartial);
     echo $layout->getRendering();
 }