You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
600 B

<?php
namespace app\index\controller;
use app\common\controller\Base;
class Index extends Base
{
public function index()
{
/**
* getcwd()
*
*/
var_dump(getcwd());
var_dump($_SERVER['PHP_SELF']);
var_dump($_SERVER['DOCUMENT_ROOT']);
var_dump(__DIR__);
$this->assign('__LIST__', [1, 2, 3]);
$this->assign('demo_time', $this->request->time());
$this->assign('demo_name', 'king');
$this->assign('key', 'demo');
return $this->fetch();
}
public function tree()
{
}
}