Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

yii2: set another site for link with Html::a

i have a link (href) to another site but i have problem

this is my code :

          return Html::a('Create More', ["https://face.com/"], ['class' => 'btn btn-primary', 'role' => 'modal-remote']);
       

why my link is a new action? i want change my baseurl to https://face.com/ but dosnt work

this is my new link:

https://niniplus.com/newadmin/index.php/https://face.com
like image 386
Saltern Avatar asked Dec 24 '22 14:12

Saltern


1 Answers

By just removing the array ["https://face.com/"], an absolute url will be return.

return Html::a('Create More', "https://face.com/", ['class' => 'btn btn-primary', 'role' => 'modal-remote']);
like image 133
vher2 Avatar answered Jan 06 '23 08:01

vher2