• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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!

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.