public function assign($key, $value)
    {
        if (empty($key)) {
            throw new \RuntimeException('ASSIGN_KEY_EMPTY');
        }
        $this->_data[$key] = $value;

        return $this;
    }
public function assign($key, $value)
    {
        if (empty($key)) {
            throw new \RuntimeException('ASSIGN_KEY_EMPTY');
        }
        $this->_data[$key] = $value;

        return $this;
    }
public function assign ( $ key , $ value ) { if ( empty ( $ key ) ) { throw new \ RuntimeException ( 'ASSIGN_KEY_EMPTY' ) ; } $ this -> _data [ $ key ] = $ value ; return $ this ; }
passing data to template parser.

@param string $key   data key
@param mixed  $value data body

@return View
passing data to template parser .