A Sample PHP Project for the tts_framework.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

21 lines
575 B

<?php
declare(strict_types=1);
namespace prj\{{.Root}}\controllers\{{.Subfolder}};
use \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);
}
}