« Yaf_Action_Abstract::getControllerName
Yaf_View_Interface::assign »

Yaf_View_Interface クラス

(Yaf >=1.0.0)

はじめに

Yaf では、組み込みのビューエンジン Yaf_View_Simple のかわりにカスタムビューを自作できるようになっています。 その実例は、 Yaf_Dispatcher::setView() を参照ください。

クラス概要

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

目次

関連キーワード:
View   Interface   abstract   assign   ビュー   getScriptPath   setScriptPath   エンジン   display   vars   render   テンプレート   レンダリング   Action   Abstract   getControllerName   組み込み   カスタム   自作   実例   Dispatcher   setView   概要   template   目次
関連する関数・ページ:
yaf-view-interface.render   yaf-view-interface.display   yaf-view-interface.assign   yaf-view-interface.getscriptpath   yaf-view-interface.setscriptpath   class.yaf-view-simple