Overview

Namespaces

  • Cakestrap
    • View
      • Helper

Classes

  • AlertHelper
  • AssetHelper
  • BadgeHelper
  • Basic
  • ButtonItemsHelper
  • CakestrapHelper
  • CallOutHelper
  • CollapseHelper
  • DropdownHelper
  • ListGroupHelper
  • ModalHelper
  • PanelHelper
  • TabHelper
  • TableHelper
  • Templates
  • WellHelper
  • Overview
  • Namespace
  • Class

Class PanelHelper

While not always necessary, sometimes you need to put your DOM in a box. For those situations, try the panel component.

<?php
echo $this->Cakestrap->Panel()->header(string $header)
                              ->body(stringOrArray $body)
                              ->footer(string $footer)
                              ->set();
?>
Cake\View\Helper
Extended by Cakestrap\View\Helper\Basic
Extended by Cakestrap\View\Helper\PanelHelper
Namespace: Cakestrap\View\Helper
Package: Cakestrap\View\Helper
Link: http://getbootstrap.com/javascript/#modals
Located at PanelHelper.php
Methods summary
public string
# set( )

Set all the defined values. This will return the final html template.

Set all the defined values. This will return the final html template.

Returns

string
protected
# _addToContainer( )

Add the panel html template to parent container.

Add the panel html template to parent container.

protected
# _setHeader( )

Set the panel header

Set the panel header

protected
# _setBody( )

Set the panel body

Set the panel body

protected
# _setFooter( )

Set the panel footer

Set the panel footer

protected
# _contents( )

Set the panel contents

Set the panel contents

Methods inherited from Cakestrap\View\Helper\Basic
__call(), _reset(), assignTemplate(), body(), options()
Magic methods summary
public
# header( string $header )

Parameters

$header

Returns

public
# body( arrayOrstring $body )

Parameters

$body

Returns

public
# footer( string $footer )

Parameters

$footer

Returns

Properties summary
protected array $_options

Additional options for this helper

Additional options for this helper

# [ 'type' => 'panel-default' ]
Properties inherited from Cakestrap\View\Helper\Basic
$_clone, $_contents, $_stringTemplate, $_template
API documentation generated by ApiGen