Answer the question
In order to leave comments, you need to log in
What is the best way to implement a button in Yii1.1 that redirects the user to another controller?
Friends, what are the best ways to use to implement a button that redirects the user to another controller? I did this, but for some reason I have a bad feeling that this is not a very good way
. In this fragment, 'admin' is the name of the module, 'second' is the controller.
<?php echo CHtml::button('Firsts', array('submit' => array('../admin/second')));?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question