3 declare(strict_types
=1);
5 namespace Shaarli\Front\Controller
;
7 use Shaarli\Container\ShaarliContainer
;
9 abstract class ShaarliController
11 /** @var ShaarliContainer */
14 /** @param ShaarliContainer $ci Slim container (extended for attribute completion). */
15 public function __construct(ShaarliContainer
$ci)
21 * Assign variables to RainTPL template through the PageBuilder.
23 * @param mixed $value Value to assign to the template
25 protected function assignView(string $name, $value): self
27 $this->ci
->pageBuilder
->assign($name, $value);