Skip to content

Commit

Permalink
revert demo of index
Browse files Browse the repository at this point in the history
  • Loading branch information
NewFuture committed Aug 18, 2016
1 parent 16fb16b commit 315e9b7
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions app/controllers/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,6 @@ public function indexAction()
$this->getView()->assign('version', Config::get('version'))->assign('url',$url);
}

public function confAction()
{
$config=parse_ini_file(APP_PATH.'/conf/app.ini',true);
// var_dump($config);
$env=Yaf_Application::app()->environ();
echo $env;
$current=$config['common']+$config[$env.':common'];

// var_dump($current);
foreach($current as $k=>$v){
if(Config::get($k)===$v)
{
echo 1;
}else{
var_dump($k);
var_dump($v);
var_dump(Config::get($k));
$o= Yaf_Application::app()->getConfig()->get($k);
var_dump(is_object($o));
var_dump($o);
}
// echo Config::get($k)===$v?1:0;
}
// var_dump(Yaf_Application::app()->getConfig()->get('ssss'));
// var_dump(Config::get()==$current);
}

/**
* GET /index/test
* @method GET_testAction
Expand Down

0 comments on commit 315e9b7

Please sign in to comment.