How can i get a list of subdomain links with this code?
<?php echo CHtml::link($language, $this->getOwner()->createAbsoluteUrl('', $params)) ?>
this output is: mydomain.com/page/blabla
what i need is: blabla.mydomain.com/page
thanx
How can i get a list of subdomain links with this code?
<?php echo CHtml::link($language, $this->getOwner()->createAbsoluteUrl('', $params)) ?>
this output is: mydomain.com/page/blabla
what i need is: blabla.mydomain.com/page
thanx
You need to create route
"http://blabla.".$domain."/page"=>'blabla/page'
than you can use
Yii::app()->createUrl('blabla/page');