Function Summary
string
auto_discovery_link_tag (, , )
Returns a <link> tag that browsers and news readers
decorate_with ()
Decorates the current template with a given layout.
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 (, )
Returns the path to an image asset.
string
image_tag (, )
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 (, )
Returns the path to a JavaScript asset.
string
stylesheet_path (, )
Returns the path to a stylesheet asset.
string
stylesheet_tag (, )
Returns a css <link> tag per source given as argument,
use_javascript ()
Adds a javascript to the response object.
use_stylesheet ()
Adds a stylesheet to the response object.
_compute_public_path ()
Function Details
(string) auto_discovery_link_tag (, , )
Browse code
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
Decorates the current template with a given layout.
(string) get_javascripts ()
Browse code
Returns <script> tags for all javascripts configured in view.yml or added to the response object.
You can use this helper to decide the location of javascripts in pages.
By default, if you don't call this helper, symfony will automatically include javascripts before .
Calling this helper disables this behavior.
returns
echo javascript_include_tag('common.javascript', '/elsewhere/cools');
=>
returns XHTML compliant