You are here

function HamlView::__construct in Sassy 7

* Initialises HamlView. *

Parameters

Controller $controller: * @return HamlView

Overrides view::__construct

File

phamlp/Cake/views/haml.php, line 141

Class

HamlView
Haml allows you to write view files in {@link Haml http://haml-lang.com/} and render them using {@link http://phamlp.googlecode.com PHamlP}.

Code

function __construct(&$controller) {
  parent::__construct($controller);
  foreach ($this->defaults as $key => $value) {
    $option = Configure::read("Haml.{$key}");
    $this->{$key} = is_null($option) ? $value : $option;
  }

  // foreach
}