]> git.immae.eu Git - github/shaarli/Shaarli.git/blame - application/front/controllers/ShaarliController.php
Fix all existing links and redirection to ?do=login
[github/shaarli/Shaarli.git] / application / front / controllers / ShaarliController.php
CommitLineData
6c50a6cc
A
1<?php
2
3declare(strict_types=1);
4
5namespace Shaarli\Front\Controller;
6
7use Shaarli\Container\ShaarliContainer;
8
9abstract class ShaarliController
10{
11 /** @var ShaarliContainer */
12 protected $ci;
13
14 /** @param ShaarliContainer $ci Slim container (extended for attribute completion). */
15 public function __construct(ShaarliContainer $ci)
16 {
17 $this->ci = $ci;
18 }
19
20 /**
21 * Assign variables to RainTPL template through the PageBuilder.
22 *
23 * @param mixed $value Value to assign to the template
24 */
25 protected function assignView(string $name, $value): self
26 {
27 $this->ci->pageBuilder->assign($name, $value);
28
29 return $this;
30 }
31}