Function Summary
-
string
auto_discovery_link_tag($type, $url, $tag_options)
Returns a <link> tag that browsers and news readers
-
decorate_with($layout)
Decorates the current template with a given layout.
-
string
dynamic_javascript_include_tag($uri, $absolute, $options)
Returns a <script> include tag for the given internal URI.
-
string
get_javascripts()
Returns <script> tags for all javascripts configured in view.yml or added to the response object.
-
string
get_stylesheets()
Returns <link> tags for all stylesheets configured in view.yml or added to the response object.
-
string
image_path($source, $absolute)
Returns the path to an image asset.
-
string
image_tag($source, $options)
Returns an <img> image tag for the asset given as argument.
-
string
include_http_metas()
Returns a set of <meta http-equiv> tags according to the response attributes,
-
include_javascripts()
Prints <script> tags for all javascripts configured in view.yml or added to the response object.
-
string
include_metas()
Prints a set of <meta> tags according to the response attributes,
-
include_stylesheets()
Prints <link> tags for all stylesheets configured in view.yml or added to the response object.
-
string
include_title()
Returns the title of the current page according to the response attributes,
-
string
javascript_include_tag(, )
Returns a <script> include tag per source given as argument.
-
string
javascript_path($source, $absolute)
Returns the path to a JavaScript asset.
-
string
stylesheet_path($source, $absolute)
Returns the path to a stylesheet asset.
-
string
stylesheet_tag(, )
Returns a css <link> tag per source given as argument,
-
use_dynamic_javascript()
Adds a dynamic javascript to the response object.
-
use_dynamic_stylesheet()
Adds a dynamic stylesheet to the response object.
-
use_javascript()
Adds a javascript to the response object.
-
use_stylesheet()
Adds a stylesheet to the response object.
-
_compute_public_path()
-
_dynamic_path()
Function Details
-
(string) auto_discovery_link_tag ($type, $url, $tag_options)
Browse code
| $type |
feed type ('rss', 'atom') |
| $url |
'module/action' or '@rule' of the feed |
| $tag_options |
additional HTML compliant tag parameters |
Returns a <link> tag that browsers and news readers
can use to auto-detect a RSS or ATOM feed for the current page,
to be included in the section of a HTML document. Options:
- rel - defaults to 'alternate'
- type - defaults to 'application/rss+xml'
- title - defaults to the feed type in upper case Examples:
echo auto_discovery_link_tag('rss', 'module/feed');
=>
echo auto_discovery_link_tag('rss', 'module/feed', array('title' => 'My RSS'));
=>
returns XHTML compliant tag
-
decorate_with ($layout)
Browse code
| $layout |
The layout name or path or false to disable the layout |
Decorates the current template with a given layout.
-
(string) dynamic_javascript_include_tag ($uri, $absolute, $options)
Browse code
| $uri |
The internal URI for the dynamic javascript |
| $absolute |
Whether to generate an absolute URL |
| $options |
An array of options |
Returns a <script> include tag for the given internal URI.
The helper automatically adds the sf_format to the internal URI, so you don't have to.
returns XHTML compliant
echo javascript_include_tag('common.javascript', '/elsewhere/cools');
=>
returns XHTML compliant
|