Core lib of filesite.io, a small PHP Framework.
https://fsc.filesite.io
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.
24 lines
632 B
24 lines
632 B
3 years ago
|
<?php
|
||
|
/**
|
||
|
* Site Controller
|
||
|
*/
|
||
|
Class SiteController extends Controller {
|
||
|
|
||
|
public function actionIndex() {
|
||
|
|
||
|
//alert message test
|
||
|
$this->sendMsgToClient('Alert message - info', 'info');
|
||
|
$this->sendMsgToClient('Alert message - warning', 'warning');
|
||
|
$this->sendMsgToClient('Alert message - danger', 'danger');
|
||
|
$this->sendMsgToClient('Alert message - success', 'success');
|
||
|
|
||
|
$pageTitle = "Welcome to FSC PHP Framework";
|
||
|
$viewName = 'index';
|
||
|
$params = array(
|
||
|
'foo' => 'bar',
|
||
|
);
|
||
|
return $this->render($viewName, $params, $pageTitle);
|
||
|
}
|
||
|
|
||
|
}
|