public function cell($cell, array $data = [], array $options = [])
    {
        $parts = explode('::', $cell);
        if (count($parts) === 2) {
            list($cell, $action) = [$parts[0], $parts[1]];
        } else {
            list($cell, $action) = [$parts[0], 'display'];
        }
        $className = Application::className($cell, 'View/' . self::VIEW_TYPE_CELL);
        $class = new $className($data);
        return $class->{$action}($options);
    }
public function cell($cell, array $data = [], array $options = [])
    {
        $parts = explode('::', $cell);
        if (count($parts) === 2) {
            list($cell, $action) = [$parts[0], $parts[1]];
        } else {
            list($cell, $action) = [$parts[0], 'display'];
        }
        $className = Application::className($cell, 'View/' . self::VIEW_TYPE_CELL);
        $class = new $className($data);
        return $class->{$action}($options);
    }
public function cell ( $ cell , array $ data = [ ] , array $ options = [ ] ) { $ parts = explode ( '::' , $ cell ) ; if ( count ( $ parts ) === 2 ) { list ( $ cell , $ action ) = [ $ parts [ 0 ] , $ parts [ 1 ] ] ; } else { list ( $ cell , $ action ) = [ $ parts [ 0 ] , 'display' ] ; } $ className = Application :: className ( $ cell , 'View/' . self :: VIEW_TYPE_CELL ) ; $ class = new $ className ( $ data ) ; return $ class -> { $ action } ( $ options ) ; }
Load a cell

@param  string $cell
@param  array $data      Data for cell constructor
@param  array $options   Options for cell method
@return mixed
Load a cell