Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

cakephp3 form control plus traditional php form

 <div style="display:flex;">
                <?php foreach ($product['product_images'] as $productImg) :  ?>
                    <div class="container parent">
                        <div class="row">
                            <div class='col text-center'>

                                <input type="radio" class="d-none imgbgchk" value="<?= $productImg->id ?>" , name="product_image_id" , controller="ProductOptions" , action="add" , id="<?= $productImg->id ?>">
                                <label for="<?= $productImg->id ?>">
                                    <?php
                                    $imgPath = $this->Url->build('/', true) . 'file/image/products/' . $productImg->product_id . DS . 'small' . DS . $productImg->image;
                                    echo $this->Html->image($imgPath, ['width' => '100']);
                                    ?>
                                    <div class="tick_container">
                                        <div class="tick"><i class="fa fa-check"></i></div>
                                    </div>
                                </label>
                            </div>
                        </div>
                    </div>
                <?php endforeach; ?>

            </div>
 
PREVIOUS NEXT
Tagged: #form #control #traditional #php #form
ADD COMMENT
Topic
Name
7+2 =