Welcome Guest, Not a member yet? Register   Sign In
Problem to pass an argument to a function

I have a problem to pass an argument to a function look i have this view file:


&lt;?php foreach ($usuarios as $usuario): ?&gt;


<td>&lt;?= $usuario->nombre ?&gt;</td>
<td>&lt;?= $usuario->apellido ?&gt;</td>
<td>&lt;?= $usuario->empresa ?&gt;</td>
<td>&lt;?= $usuario->usuario ?&gt;</td>
<td>&lt;?= $usuario->password ?&gt;</td>
&lt;?php echo anchor('Panel_Admin/Modify_Usuario', 'Modificar');
    echo "-";
    echo anchor('Panel_Admin/Eliminar_USuario', 'Borrar');?&gt;</td>

&lt;?php endforeach;?&gt;


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.

The user guide on Views covers that.

Yes i see it, the problems was in the concatenation of the arguments, thanks!

Theme © iAndrew 2016 - Forum software by © MyBB