Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
sursir committed Nov 6, 2015
1 parent 526d1be commit 61d2828
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 47 deletions.
5 changes: 0 additions & 5 deletions application/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
6 changes: 0 additions & 6 deletions application/controllers/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
8 changes: 0 additions & 8 deletions application/library/A.php

This file was deleted.

9 changes: 0 additions & 9 deletions application/library/X/Foo/Foobar.php

This file was deleted.

9 changes: 0 additions & 9 deletions application/library/Y/YY.php

This file was deleted.

9 changes: 0 additions & 9 deletions application/library/Z/ZZ.php

This file was deleted.

1 change: 0 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
/** APP 根目录 指向public上一级 */
define('APP_PATH', __DIR__);
$app = new Yaf\Application(APP_PATH . '/conf/application.ini');
echo '<pre><code>';

$app->bootstrap()
->run();

0 comments on commit 61d2828

Please sign in to comment.