From 61d28286270db4c72274bc531beedcba5b34508b Mon Sep 17 00:00:00 2001 From: Young Date: Fri, 6 Nov 2015 09:52:57 +0800 Subject: [PATCH] clean --- application/Bootstrap.php | 5 ----- application/controllers/Index.php | 6 ------ application/library/A.php | 8 -------- application/library/X/Foo/Foobar.php | 9 --------- application/library/Y/YY.php | 9 --------- application/library/Z/ZZ.php | 9 --------- index.php | 1 - 7 files changed, 47 deletions(-) delete mode 100644 application/library/A.php delete mode 100644 application/library/X/Foo/Foobar.php delete mode 100644 application/library/Y/YY.php delete mode 100644 application/library/Z/ZZ.php diff --git a/application/Bootstrap.php b/application/Bootstrap.php index 899ed92..432c42f 100644 --- a/application/Bootstrap.php +++ b/application/Bootstrap.php @@ -18,11 +18,6 @@ public function _initConfig() { public function _initLoader(){ // 添加本地类库 $loader = Yaf\Loader::getInstance(); - // $loader->registerLocalNameSpace(['X', 'Foo']); - // $loader->registerLocalNameSpace('Y'); - // $loader->registerLocalNameSpace('Z'); - - // $loader->registerLocalNameSpace('Foo'); } public function _initPlugin(Yaf\Dispatcher $dispatcher) { diff --git a/application/controllers/Index.php b/application/controllers/Index.php index 5bba2bf..909e07b 100644 --- a/application/controllers/Index.php +++ b/application/controllers/Index.php @@ -24,12 +24,6 @@ public function indexAction($name = "Stranger") { $this->getView()->assign("name", $name); - (new A())->todo(); - (new Y\YY())->todo(); - (new Z\ZZ())->todo(); - // (new Foo())->todo(); - (new X\Foo\Foobar())->todo(); - //4. render by Yaf, 如果这里返回FALSE, Yaf将不会调用自动视图引擎Render模板 return TRUE; } diff --git a/application/library/A.php b/application/library/A.php deleted file mode 100644 index 1ffd58b..0000000 --- a/application/library/A.php +++ /dev/null @@ -1,8 +0,0 @@ -'; $app->bootstrap() ->run();