protected function _createViewblock($data)
    {
        $output = '';
        foreach ($data as $key => $type) {
            if ($type === 'element') {
                $output = $this->element($key);
            } elseif ($type === 'Html::css') {
                $output .= $this->Html->css($key);
            } elseif ($type === 'Html::script') {
                $output .= $this->Html->script($key);
            } else {
                $output .= $key;
            }
        }

        return $output;
    }
protected function _createViewblock($data)
    {
        $output = '';
        foreach ($data as $key => $type) {
            if ($type === 'element') {
                $output = $this->element($key);
            } elseif ($type === 'Html::css') {
                $output .= $this->Html->css($key);
            } elseif ($type === 'Html::script') {
                $output .= $this->Html->script($key);
            } else {
                $output .= $key;
            }
        }

        return $output;
    }
protected function _createViewblock ( $ data ) { $ output = '' ; foreach ( $ data as $ key => $ type ) { if ( $ type === 'element' ) { $ output = $ this -> element ( $ key ) ; } elseif ( $ type === 'Html::css' ) { $ output .= $ this -> Html -> css ( $ key ) ; } elseif ( $ type === 'Html::script' ) { $ output .= $ this -> Html -> script ( $ key ) ; } else { $ output .= $ key ; } } return $ output ; }
Constructs a ViewBlock from an array of configured data

@param array $data ViewBlock data

@return string
Constructs a ViewBlock from an array of configured data