Posted inProgramming / Yii

How to Open URL in New Tab using Yii Framework

How to Open URL in New Tab using Yii Framework

Today, We want to share with you How to Open URL in New Tab using Yii Framework.
In this post we will show you opening a link in new tab – Yii Framework, hear for yii2 – How to open a new window in YII framework 2.0 we will give you demo and example for implement.In this post, we will learn about PHP Yii Framework PHP redirect to external Link in new tab? with an example.

My Paka Knowledgeable Ideas, Tips and Tricks, Useful Content, Jobs, Technology, Earn Money, gmail creation, skype, yahoo and more useful things.

In Yii Framework, Open new window when target=”_blank”

Yii Framework Overview with Features

There are the Following the List of Features For Yii Framework Pure JavaScript Latest Frameworks.

Yii Framework redirect to a new tab

 'E-mail BTPN', 'url' => ''),
)); ?>

PHP Yii Framework redirect to a new tab Example

Click here

Therefor in PHP Based Yii2 framework with Html simple helper in display data file We can simple source code Like as:

'_blank']) ?>

And then in PHP framework yii2 Table grid We can display raw column:

  'value'=>function ($model, $index, $widget){
     return Html::a(
             'title'=>'Welcome to Pakainfo',

Yii Framework Redirects

//first way PHP YII Framework Redirecting

//second way PHP Framework Yii redirect with Param
$this->redirect(array('site/author','id'=>$model->id, 'title'=>$model->title));

//Like as 


Yii Framework Redirecting To External Domains

//Redirect Script in Yii ->Yii redirect to referrer URL


There are main 3 type of the PHP Based framework Yii Redirect Option Like as

  • Redirect Anywhere
  • Redirect Within Controller
  • Redirect Between Controller

Redirect Between Controller

//PHP yii Framework Redirect between controller

Redirect Within Controller

//PHP yii Framework Redirect within controller
jQuery 15 Powerful Tips and Tricks for Developers and Web Designer

Read :


You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about Yii redirect to referrer URL.
I would like to have feedback on my blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

I am Jaydeep Gondaliya , a software engineer, the founder and the person running Pakainfo. I'm a full-stack developer, entrepreneur and owner of I live in India and I love to write tutorials and tips that can help to other artisan, a Passionate Blogger, who love to share the informative content on PHP, JavaScript, jQuery, Laravel, CodeIgniter, VueJS, AngularJS and Bootstrap from the early stage.

Leave a Reply

Your email address will not be published. Required fields are marked *

We accept paid guest Posting on our Site : Guest Post Chat with Us On Skype