public function assign($key, $value = null){
        if(is_array($key)){
            foreach($key as $k => $v){
                $this->variables[$k] = $v;
            }
        }
        else{
            $this->variables[$key] = $value;
        }
    }
public function assign($key, $value = null){
        if(is_array($key)){
            foreach($key as $k => $v){
                $this->variables[$k] = $v;
            }
        }
        else{
            $this->variables[$key] = $value;
        }
    }
public function assign ( $ key , $ value = null ) { if ( is_array ( $ key ) ) { foreach ( $ key as $ k => $ v ) { $ this -> variables [ $ k ] = $ v ; } } else { $ this -> variables [ $ key ] = $ value ; } }
Assign view variable
@param string|array $key
@param mixed $value
Assign view variable