mini\Controller\AbstractController::findViewForCurrentRoute() Method

private

Signature

private function findViewForCurrentRoute(): ?string

Returns

?string

Documentation

Find view template for current route

Maps controller route to view path:

  • UserController::index() → users/index.php
  • UserController::show() → users/show.php
  • PostController::showPost() → posts/show.php

Source

src/Controller/AbstractController.php:289-323