system/Views/View.php
public function ViewBag($k=null, $v=null)
    {
		if($v !== null){
			$this->viewBag->$k = $v;
		}elseif($k !== null){
			return $this->viewBag->$k;
		}else{
			return $this->viewBag;
		}
		return $this;
	}
public function ViewBag($k=null, $v=null)
    {
		if($v !== null){
			$this->viewBag->$k = $v;
		}elseif($k !== null){
			return $this->viewBag->$k;
		}else{
			return $this->viewBag;
		}
		return $this;
	}
public function ViewBag ( $ k = null , $ v = null ) { if ( $ v !== null ) { $ this -> viewBag -> $ k = $ v ; } elseif ( $ k !== null ) { return $ this -> viewBag -> $ k ; } else { return $ this -> viewBag ; } return $ this ; }
share data to all views files

@param string   $k
@param mixed    $v

@return mixed
share data to all views files