classes/View.php
public function with($data){
      if ($data){
        $tmp = array_merge($data, (isset($this->options['data'])?$this->options['data']:[]));
        $this->options['data'] = $tmp;
      }
      return $this;
    }
public function with($data){
      if ($data){
        $tmp = array_merge($data, (isset($this->options['data'])?$this->options['data']:[]));
        $this->options['data'] = $tmp;
      }
      return $this;
    }
public function with ( $ data ) { if ( $ data ) { $ tmp = array_merge ( $ data , ( isset ( $ this -> options [ 'data' ] ) ? $ this -> options [ 'data' ] : [ ] ) ) ; $ this -> options [ 'data' ] = $ tmp ; } return $ this ; }
Assigns data to the view
@param  array $data     The key-value map of data to pass to the view
@return View
Assigns data to the view