HTML Object

A HTML Object is the “base” form of any object we provide with the template renderer.

Parameters

  • tag = string
  • attributes = array()
  • text = string, default ”
new HtmlObject($tag, $attributes, $text);

Usage

$object = new HtmlObject('span', array('class' => 'btn'), 'Click');
echo $object->get_template();

Output

<span class="btn">Click Me</span>
0
    0
    Your Cart
    Your cart is emptyReturn to Shop