shychotc
shychotc

Reputation: 35

button that would redirect to a different form in yii

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

Answers (1)

tnchalise
tnchalise

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

Related Questions