1
0

init commit

This commit is contained in:
2021-05-13 11:35:49 +08:00
commit a2db70af8b
18 changed files with 541 additions and 0 deletions

16
app/controllers/Error.php Normal file
View File

@@ -0,0 +1,16 @@
<?php
/**
* ErrorController 错误处理
*/
class ErrorController extends Yaf_Controller_Abstract {
public function errorAction($exception) {
$code = $exception->getCode();
$errMsg = $exception->getMessage();
var_dump($errMsg);
return false;
}
}

17
app/controllers/Index.php Normal file
View File

@@ -0,0 +1,17 @@
<?php
class IndexController extends Yaf_Controller_Abstract {
protected function init() {
echo "IndexController\n";
}
/* action method may have arguments */
function indexAction() {
return false;
}
function loginAction() {
return false;
}
}

8
app/controllers/Log.php Normal file
View File

@@ -0,0 +1,8 @@
<?php
class LogController extends Yaf_Controller_Abstract {
/* action method may have arguments */
function indexAction() {
}
}