|
@@ -69,6 +69,7 @@ abstract class Controller extends \stdClass
|
|
{
|
|
{
|
|
$this->app = $app;
|
|
$this->app = $app;
|
|
$this->request = $app->request;
|
|
$this->request = $app->request;
|
|
|
|
+ var_dump($app);
|
|
// 控制器注入容器
|
|
// 控制器注入容器
|
|
Container::set('library\Controller', $this);
|
|
Container::set('library\Controller', $this);
|
|
if (in_array($this->request->action(), get_class_methods(__CLASS__))) {
|
|
if (in_array($this->request->action(), get_class_methods(__CLASS__))) {
|