Reputation: 35
I have a cListview where users could select stuff they want to reserve but then after choosing those stuff I need a button to redirect to another form which could Identify the information of the borrower
the problem is the other form is located in a different controller/action how can i redirect the button there?
help, anyone?
Upvotes: 0
Views: 1474
Reputation: 1583
You may use, Yii::app()->createUrl()
, method in your url-referral of button in CListView
.
'buttons' => array(
'Say Something' =>array(
'url' => 'Yii::app()->createUrl("/controller/action/id/".$data->id)'
),
--options...
),
Upvotes: 1