Return twig template by controller?

I need to get there some more data and for some other pages I need also db inserts etc…

My standard code is:
namespace App\Controllers;

use Slim\Views\Twig;
use Psr\Log\LoggerInterface;
use Illuminate\Database\Query\Builder;
use Psr\Http\Message\ServerRequestInterface as Request;
use Psr\Http\Message\ResponseInterface as Response;

class SitecheckController
{
    private $view;
    private $logger;
    protected $table;

    public function index(Request $request, Response $response, $args)
    {
        //return "contr. return msg!";
        return $this->view->render($response, 'home.twig');
    }
}

I tried also with $this, but the same problem…