src/View/Helper/MelisModal.php
protected function setContents(array $contents)
    {
        $loopCtr = 0;
        if($contents && is_array($contents))
        {
            foreach($contents as $attrib => $values)
            {
                if($this->_defaultTab == $loopCtr)
                {
                    $this->_contents .= '<div class="tab-pane active" id="'.$values['id'].'"><div class="row"><div class="col-md-12">'.$values['content'].'</div></div></div>';
                }
                else 
                {
                    $this->_contents .= '<div class="tab-pane" id="'.$values['id'].'"><div class="row"><div class="col-md-12">'.$values['content'].'</div></div></div>';
                }

                $loopCtr++;
            }
        }
        
    }
protected function setContents(array $contents)
    {
        $loopCtr = 0;
        if($contents && is_array($contents))
        {
            foreach($contents as $attrib => $values)
            {
                if($this->_defaultTab == $loopCtr)
                {
                    $this->_contents .= '<div class="tab-pane active" id="'.$values['id'].'"><div class="row"><div class="col-md-12">'.$values['content'].'</div></div></div>';
                }
                else 
                {
                    $this->_contents .= '<div class="tab-pane" id="'.$values['id'].'"><div class="row"><div class="col-md-12">'.$values['content'].'</div></div></div>';
                }

                $loopCtr++;
            }
        }
        
    }
protected function setContents ( array $ contents ) { $ loopCtr = 0 ; if ( $ contents && is_array ( $ contents ) ) { foreach ( $ contents as $ attrib => $ values ) { if ( $ this -> _defaultTab == $ loopCtr ) { $ this -> _contents .= '<div class="tab-pane active" id="' . $ values [ 'id' ] . '"><div class="row"><div class="col-md-12">' . $ values [ 'content' ] . '</div></div></div>' ; } else { $ this -> _contents .= '<div class="tab-pane" id="' . $ values [ 'id' ] . '"><div class="row"><div class="col-md-12">' . $ values [ 'content' ] . '</div></div></div>' ; } $ loopCtr ++ ; } } }
Sets the contents of each Modal Tab
@param array $contents
Sets the contents of each Modal Tab