a-blog cms PHP API Reference

Twig
in package

Table of Contents

Properties

$path  : string
$theme  : string
$twig  : Environment

Methods

addExtension()  : void
拡張を追加
addFunction()  : void
Functionを追加
clearCache()  : void
Twigのキャッシュをクリア
load()  : void
twigテンプレートをロード
render()  : string
レンダリング

Properties

$path

protected string $path

$theme

protected string $theme

$twig

protected Environment $twig

Methods

addExtension()

拡張を追加

public addExtension(AbstractExtension $extension) : void
Parameters
$extension : AbstractExtension
Tags
throws
LogicException

addFunction()

Functionを追加

public addFunction(string $name, callable $function) : void
Parameters
$name : string
$function : callable
Tags
throws
LogicException

clearCache()

Twigのキャッシュをクリア

public clearCache() : void

load()

twigテンプレートをロード

public load(string $path, string $theme) : void
Parameters
$path : string
$theme : string
Tags
throws
LogicException

render()

レンダリング

public render() : string
Return values
string

        
On this page

Search results