Index: documentation/manual/en/module_specs/Zend_View-Helpers.xml =================================================================== --- documentation/manual/en/module_specs/Zend_View-Helpers.xml (revision 24859) +++ documentation/manual/en/module_specs/Zend_View-Helpers.xml (working copy) @@ -242,6 +242,25 @@ + formImage($name, $value, $attribs): Creates an + <input type="image" /> element. + + +formImage( + 'foo', + 'bar', + array( + 'src' => 'images/button.png', + 'alt' => 'Button', + ) +); +// Output: +]]> + + + + formLabel($name, $value, $attribs): Creates a <label> element, setting the for attribute to $name, and the actual label text to @@ -266,6 +285,19 @@ + formNote($name, $value = null): Creates a + simple text note. (e.g. as element for headlines in a + Zend_Form object) + + +formNote(null, 'This is an example text.'); +// Output: This is an example text. +]]> + + + + formPassword($name, $value, $attribs): Creates an <input type="password" /> element. @@ -331,6 +363,37 @@ + serverUrl($requestUri = null): Helper + for returning the current server URL (optionally with request URI). + + +serverUrl(); +// Output: http://www.example.com + +echo $this->serverUrl(true); +// Output: http://www.example.com/foo.html + +echo $this->serverUrl('/foo/bar'); +// Output: http://www.example.com/foo/bar + +echo $this->serverUrl()->getHost(); +// Output: www.example.com + +echo $this->serverUrl()->getScheme(); +// Output: http + +$this->serverUrl()->setHost('www.foo.com'); +$this->serverUrl()->setScheme('https'); +echo $this->serverUrl(); +// Output: https://www.foo.com +]]> + + + + htmlList($items, $ordered, $attribs, $escape): generates unordered and ordered lists based on the $items passed to it. If $items is a multidimensional @@ -406,6 +469,7 @@ + Index: documentation/manual/en/module_specs/Zend_View-Helpers-RenderToPlaceholder.xml =================================================================== --- documentation/manual/en/module_specs/Zend_View-Helpers-RenderToPlaceholder.xml (revision 0) +++ documentation/manual/en/module_specs/Zend_View-Helpers-RenderToPlaceholder.xml (revision 0) @@ -0,0 +1,42 @@ + + + + RenderToPlaceholder Helper + + + Renders a template (view script) and stores the rendered output as a + placeholder variable for later use. + + + + + The helper uses the Placeholder helper + and his Capture methods. + + + + + Basic Usage of RenderToPlaceholder + +Older posts

', + $this->url(array('controller' => 'index', 'action' => 'index')) +) +?> + +renderToPlaceholder('backlink.phtml', 'link'); +?> + +placeholder('link'); +// Output:

Older posts

+?> +]]>
+
+ +
\ No newline at end of file