I have the following code in the controller action
$this->redirect(Yii::app()->baseUrl."/aaa/test.php?statusLine=$_GET[statusLine]&User_id=$user_id");
this works fine.
but I want this to be opened in a new window (target=blank)
Any help is appreciated.
Page 1 of 1
Open Url In A New Windows Open URL in a new windows using $this->redirect
#2
Posted 07 December 2012 - 06:11 AM
You need to handle this on the client's browser, not the server.
Assuming that you're posting a form, you could send the original request over ajax, capture the result and open a new window pointing at the relevant URL.
What is the purpose of the new window / tab exactly?
Assuming that you're posting a form, you could send the original request over ajax, capture the result and open a new window pointing at the relevant URL.
What is the purpose of the new window / tab exactly?
Share this topic:
Page 1 of 1

Help












