在common目录下有一个Demo的类 <?php namespace app\common; class Demo { public function index() { echo 'this is Container Demo in app\common'; } }