davidtheo
(Davidtheo)
1
Hi All.
Is there a way where I can have mutlipe forms on a page where each submit will call a different action in the same controller eg
view review
form review calls review/review
form submit calls review/submit
form view calls review/view
end view
can this be done?
Keith
(Kburton)
2
Yes, just specify the route in the beginForm() call.
<?= CHtml::beginForm('/review/review'); ?>
...
<?= CHtml::endForm(); ?>
<?= CHtml::beginForm('/review/submit'); ?>
...
<?= CHtml::endForm(); ?>
davidtheo
(Davidtheo)
3
Thanks this will help me alot