Modal help - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Modal help (/showthread.php?tid=79274) |
Modal help - bengtdg - 05-20-2021 Not sure if i'm in the right place.. But i have a site using CI4 and trying to get a modal up and running... The modal pops up, but contains no info... So if anyone could direct me to the right direction... Link that calls the modal PHP Code: <a href="" data-toggle="modal" data-target="#myModal" data-foodid="<?=$subject['food_id'];?>" data-food="<?=$food_name;?>" data-name="<?=$name;?>" data-time="<?=$time;?>" data-status="<?=$status;?>><i class="fa fa-eye""><?= $subject['food'] ?></i></a> The modal PHP Code: <div class="modal fade hide" id="myModal" role="dialog" data-backdrop="static" data-keyboard="false"> And the javascript PHP Code: <script> RE: Modal help - InsiteFX - 05-21-2021 This my help you out. CRUD CodeIgniter 4 Tutorial with Bootstrap Modal (Complete Guide) RE: Modal help - bengtdg - 05-21-2021 (05-21-2021, 02:44 AM)InsiteFX Wrote: This my help you out. Thanx |