View Helpers
Prev Chapter 10. Views and Templates Next

View Helpers

Loading with View's loadHelper

Html

  • specialchars($str, $double_encode = true)

  • anchor($uri, $title = NULL, $attributes = NULL)

  • css($style, $media = FALSE)

  • link($href, $rel, $type, $suffix = FALSE, $media = FALSE)

  • js($script)

  • img($src = NULL, $alt = NULL)

  • attributes($attrs)

Special, global function: h($var,$encode_entities=true)

Url

  • action($actionControllerMethodPair)

  • asset($file = '')

  • base($suffix = '')

Layout

  • extend($parent)

  • draw($templateFile, $context)

Part

  • draw($partTemplate, [$args*])

  • block($partTemplate, [$args*])

  • drawArray($partTemplate, $array)

Buffer

  • to(&$block)

  • appendTo(&$block)

  • prependTo(&$block)

  • end()


Prev Up Next
Views Home Blocks