<?php

declare(strict_types=1);

namespace prj\{{.Root}}\controllers\{{.Subfolder}};

use \bs_tts\use_iol as IOL;

class {{.File}}_ctrl {
  public $page_output; // Required Public Property Called page_output for View to work!
  
  public function {{.Method}}() {
    $html = new \tts\html_document();
    $view = new \tts\view();
    $view->set('html', $html);
    $view->set('output', IOL::auto_wire("{{.Subfolder}}", "{{.File}}", "{{.Method}}"));
    $view->set_template('main');
    $view->include("{{.Subfolder}}/{{.File}}_{{.Method}}_view");
    $view->render($this);
  }
}