public function getTemplateFile($filename, $data)
    {
        $data['getRegion'] = function($name) { 
            return $this->getRegion($name); 
            }; // This is for mustache compatibility

        // Push the data into regions and then pass a pointer to this class to the layout
        // $this->setRegions($data);
        return parent::getTemplateFile($filename, $data); // Pass in layout object to template
    }
public function getTemplateFile($filename, $data)
    {
        $data['getRegion'] = function($name) { 
            return $this->getRegion($name); 
            }; // This is for mustache compatibility

        // Push the data into regions and then pass a pointer to this class to the layout
        // $this->setRegions($data);
        return parent::getTemplateFile($filename, $data); // Pass in layout object to template
    }
public function getTemplateFile ( $ filename , $ data ) { $ data [ 'getRegion' ] = function ( $ name ) { return $ this -> getRegion ( $ name ) ; } ; // This is for mustache compatibility // Push the data into regions and then pass a pointer to this class to the layout // $this->setRegions($data); return parent :: getTemplateFile ( $ filename , $ data ) ; // Pass in layout object to template }
Get template file

@param string $filename
@param mixed $data Typically a string, Container object or other object
@return string
@todo array merge regions with data
Get template file