[eluser]Diegosf93[/eluser]
I have a problem to pass an argument to a function look i have this view file:
Code:
<table>
<tr>
<th>Nombre</th>
<th>Apellido</th>
<th>Empresa</th>
<th>Usuario</th>
<th>Password</th>
<th>-</th>
</tr>
<?php foreach ($usuarios as $usuario): ?>
<tr>
<td><?= $usuario->nombre ?></td>
<td><?= $usuario->apellido ?></td>
<td><?= $usuario->empresa ?></td>
<td><?= $usuario->usuario ?></td>
<td><?= $usuario->password ?></td>
<td>
<?php echo anchor('Panel_Admin/Modify_Usuario', 'Modificar');
echo "-";
echo anchor('Panel_Admin/Eliminar_USuario', 'Borrar');?></td>
</tr>
<?php endforeach;?>
</table>
So i want to modify an user and call a function in the controller and i want to pass it the id of the user to load his information, but i dont know how to pass it to the function.