2
Docs2
2
$Painfree->view()
$Painfree->view() : void
$Painfree->view() : void
This function is called automatically by PHPainfree2
and loads the defined BaseView.
This is an internal function to PHPainfree2
and is not meant to be called by applications.
include $Painfree->view(); // load the application logic controller
public function view() : void {
return $this->options['TemplateFolder'] .
'/' . $this->options['BaseView'];
}
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