Welcome Guest, Not a member yet? Register   Sign In
Td escaping issue
#1

I guys please who can help with this issue?
when loads the view it displays me error. the td tag does not me allow adding these 2 options
<?php foreach($resourse as $res): ?>
                                        <tr>
                                            <td><?=$res['id']?></td>
                                            <td><?=$res['name']?></td>
                                            <td><a href="<?= base_url("users/edit/".$res['id']); ?>" class="btn btn-outline-success glyphicon glyphicon-pencil" ></a> <a href="<?= base_url("users/delete/".$res['id']); ?>" onclick="return confirm('do you want to delete ?')" class="btn btn-outline-danger glyphicon glyphicon-remove"></a></td>
                                        </tr>
                                        <?php endforeach?>
Reply
#2

Use the CodeIgniter 4 table class.

CodeIgniter 4 User Guide - HTML Table Class
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

(06-14-2021, 01:51 AM)InsiteFX Wrote: Use the CodeIgniter 4 table class.

CodeIgniter 4 User Guide - HTML Table Class

Im using the 3.1.11 version
Reply
#4

The CodeIgniter 3 has the same type of table class it's in the Users Guide.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB