Skip to content

Commit

Permalink
调整
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Jan 20, 2019
1 parent c36328e commit 7e3556b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/view/driver/Think.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function __construct(App $app, array $config = [])
$this->config['view_path'] = $this->app->getAppPath() . 'view' . DIRECTORY_SEPARATOR;
}

$this->template = new Template($app, $this->config);
$this->template = new Template($this->config);
}

/**
Expand Down Expand Up @@ -90,7 +90,7 @@ public function fetch(string $template, array $data = []): void
$this->app['log']
->record('[ VIEW ] ' . $template . ' [ ' . var_export(array_keys($data), true) . ' ]');

$this->template->assign($data)->fetch($template);
$this->template->fetch($template, $data);
}

/**
Expand All @@ -102,7 +102,7 @@ public function fetch(string $template, array $data = []): void
*/
public function display(string $template, array $data = []): void
{
$this->template->assign($data)->display($template);
$this->template->display($template, $data);
}

/**
Expand Down

0 comments on commit 7e3556b

Please sign in to comment.