PHPainfree2 Docs

$Painfree->view() - Documentation | PHPainfree2

PHPainfree2 $Painfree->view()

$Painfree->view() : void

$Painfree->view() : void

This function is called automatically by PHPainfree2 and loads the defined BaseView.

WARNING

This is an internal function to PHPainfree2 and is not meant to be called by applications.

$Painfree->logic()

include $Painfree->view(); // load the application logic controller

public function view() : void {
	return $this->options['TemplateFolder'] . 
		'/' . $this->options['BaseView'];
}
$Painfree->view()
What Where How
Configured PainfreeConfig.php $PainfreeConfig['TemplateFolder'];
Configured PainfreeConfig.php $PainfreeConfig['BaseView'];
Called Painfree.php $Painfree->view();
PHPainfree/
|-- htdocs/
|-- includes/
|   |-- PainfreeConfig.php
|   |-- Painfree.php
|   |-- App.php
|   `-- Controllers/
`-- templates/
    |-- app.php
	`-- views/
	    `-- main.php