BladeAdapter Class

Aurora\Web\View\Adapter Namespace

Interfaces


Properties

templateDir

Templates directory

protected $templateDir: string

cacheDir

Cache directory

protected $cacheDir: string

Constructor

__construct

Constructor

Parameters

  • string $templateDir — Templates directory
  • string $cacheDir — Cache directory

Signature

public function __construct(string $templateDir, string $cacheDir)

Methods

__construct

Constructor

Parameters

  • string $templateDir — Templates directory
  • string $cacheDir — Cache directory

Signature

public function __construct(string $templateDir, string $cacheDir)

render

Render template

Parameters

  • string $template — Template name
  • array $data — Template data

Return Value

  • string

Signature

public function render(string $template, array $data): string

Go to top