/** * Inicjalizuje stronę glówną i wyświetla statystykę z bazy danych * @return view */ function index() { $temp = new baza(); $this->layout->header = 'Witaj!'; $this->layout->content = $temp->statystyka(); return $this->layout; }