public function widget($name, array $data = [], array $options = [])
    {
        $parts = explode('::', $name);
        $name = $parts[0] . 'Widgets';
        $name = empty($parts[1]) ? $name : sprintf('%s::%s', $name, $parts[1]);

        return $this->getView()->cell($name, $data, $options);
    }
public function widget($name, array $data = [], array $options = [])
    {
        $parts = explode('::', $name);
        $name = $parts[0] . 'Widgets';
        $name = empty($parts[1]) ? $name : sprintf('%s::%s', $name, $parts[1]);

        return $this->getView()->cell($name, $data, $options);
    }
public function widget ( $ name , array $ data = [ ] , array $ options = [ ] ) { $ parts = explode ( '::' , $ name ) ; $ name = $ parts [ 0 ] . 'Widgets' ; $ name = empty ( $ parts [ 1 ] ) ? $ name : sprintf ( '%s::%s' , $ name , $ parts [ 1 ] ) ; return $ this -> getView ( ) -> cell ( $ name , $ data , $ options ) ; }
Returns a widget
@param string $name Cell name
@param array $data Additional arguments for cell method
@param array $options Options for Cell's constructor
@return Cake\View\Cell The cell instance
Returns a widget