Yaf_View_Interface 类

(Yaf >=1.0.0)

简介

Yaf 为开发人员提供了使用自定义视图而不是内置引擎 Yaf_View_Simple 的能力。有个例子可以解释如何做到这一点,参阅 Yaf_Dispatcher::setView()

类摘要

class Yaf_View_Interface {
/* 方法 */
abstract public assign(string $name, string $value = ?): bool
abstract public display(string $tpl, array $tpl_vars = ?): bool
abstract public getScriptPath(): void
abstract public render(string $tpl, array $tpl_vars = ?): string
abstract public setScriptPath(string $template_dir): void
}

目录

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top