As I know render is move to another page ...
For example:
$this->render('index'); // move to index.php
In normal HTML we can simply do this for what I want- For example:
Click index.php#tab1
will move to location tab1
... How bout Yii ?
I tried $this->render('index#tab1');
but doesn't work. Any suggestion to do that ? Thanks
I tried this and it worked.
$this->redirect(array('/site/index','#'=>'tab1'));
Thanks
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.