public function writeToTemplate($value)
	{

		if (is_array($this->arrMapper))
		{
			$arrValue[$this->arrMapper[0]] = $this->Template->{$this->arrMapper[0]};
			
			$map =& $arrValue;
			
			foreach ($this->arrMapper as $key)
			{
				if (!is_array($map[$key]))
				{
					$map[$key] = array();
				}
				
				$map =& $map[$key];
			}
			
			$map[$this->alias] = $value;

			$this->Template->{$this->arrMapper[0]} = $arrValue[$this->arrMapper[0]];
			return;
		}	
	
		$this->Template->{$this->alias} = $value;
	}
public function writeToTemplate($value)
	{

		if (is_array($this->arrMapper))
		{
			$arrValue[$this->arrMapper[0]] = $this->Template->{$this->arrMapper[0]};
			
			$map =& $arrValue;
			
			foreach ($this->arrMapper as $key)
			{
				if (!is_array($map[$key]))
				{
					$map[$key] = array();
				}
				
				$map =& $map[$key];
			}
			
			$map[$this->alias] = $value;

			$this->Template->{$this->arrMapper[0]} = $arrValue[$this->arrMapper[0]];
			return;
		}	
	
		$this->Template->{$this->alias} = $value;
	}
public function writeToTemplate ( $ value ) { if ( is_array ( $ this -> arrMapper ) ) { $ arrValue [ $ this -> arrMapper [ 0 ] ] = $ this -> Template -> { $ this -> arrMapper [ 0 ] } ; $ map = & $ arrValue ; foreach ( $ this -> arrMapper as $ key ) { if ( ! is_array ( $ map [ $ key ] ) ) { $ map [ $ key ] = array ( ) ; } $ map = & $ map [ $ key ] ; } $ map [ $ this -> alias ] = $ value ; $ this -> Template -> { $ this -> arrMapper [ 0 ] } = $ arrValue [ $ this -> arrMapper [ 0 ] ] ; return ; } $ this -> Template -> { $ this -> alias } = $ value ; }
Write a value to the template

@param mixed $value The value to be written to the template
Write a value to the template