<?php

namespace {{ appNamespace }}\Controllers;

class Home extends \Hubleto\Erp\Controller
{

  public function getBreadcrumbs(): array
  {
    return array_merge(parent::getBreadcrumbs(), [
      [ 'url' => '{{ appRootUrlSlug }}', 'content' => '{{ appName }}' ],
    ]);
  }

  public function prepareView(): void
  {
    parent::prepareView();
    $this->viewParams['now'] = date('Y-m-d H:i:s');
    $this->setView('@{{ appViewNamespace }}/Home.twig');
  }

}