I have here a crud with two options: active and inactive.
The idea is when the user click on the icon, change the value of field to 0
or 1, true or false.
I have tried everything but i couln´t actualize the field.
The commented lines show my frustrated tries.
The View:
?php echo
It´s work!
Here, the solution:
In the view:
?php echo link_to('Atualizar',
'EventsEvents/ToggleActivate?id='.$events_events-getId(), array('method' =
'post', 'class' = 'bt-'.$suf.'active')) ?
In the action:
public function executeToggleActivate($request)
{