init commit
This commit is contained in:
16
app/controllers/Error.php
Normal file
16
app/controllers/Error.php
Normal 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
17
app/controllers/Index.php
Normal 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
8
app/controllers/Log.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
class LogController extends Yaf_Controller_Abstract {
|
||||
/* action method may have arguments */
|
||||
function indexAction() {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user