메소드 | 설명 | |
---|---|---|
capture ( ) : Horde_View_Helper_Capture_Base | Capture allows you to extract a part of the template into an instance variable. | |
contentFor ( string $name ) : Horde_View_Helper_Capture_ContentFor | Calling contentFor() stores the block of markup for later use. |
capture() ?>
Welcome To my shiny new web page!
greeting = $capture->end() ?>
public capture ( ) : Horde_View_Helper_Capture_Base | ||
리턴 | Horde_View_Helper_Capture_Base |
contentFor("header") ?>
end() ?>
Use $this->contentForHeader anywhere in your templates:
contentForHeader ?>
public contentFor ( string $name ) : Horde_View_Helper_Capture_ContentFor | ||
$name | string | Name of the content that becomes the instance variable name. "foo" -> "$this->contentForFoo" |
리턴 | Horde_View_Helper_Capture_ContentFor |