protected function getRequiredTemplateVariable($name)
    {
        if(!array_key_exists($name, $this->templateVars))
            throw new ControllerException('Required template variable ['.$name.'] is missing');

        return $this->templateVars[$name];
    }
protected function getRequiredTemplateVariable($name)
    {
        if(!array_key_exists($name, $this->templateVars))
            throw new ControllerException('Required template variable ['.$name.'] is missing');

        return $this->templateVars[$name];
    }
protected function getRequiredTemplateVariable ( $ name ) { if ( ! array_key_exists ( $ name , $ this -> templateVars ) ) throw new ControllerException ( 'Required template variable [' . $ name . '] is missing' ) ; return $ this -> templateVars [ $ name ] ; }
Used in datasource methods, throws ControllerException when value is missing

@param $name
@return mixed
Used in datasource methods throws ControllerException when value is missing