H
H
HellWalk2017-10-26 12:41:13
Yii
HellWalk, 2017-10-26 12:41:13

How to make a page like site.ru/page#key?

The page is created through: It is necessary to add an anchor of the form site.ru/page #key to the end of the link How to add #key to the page rendering? I did not find the answer in the documentation .
return $this->render('page']);

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Artem, 2017-10-26
@proudmore

This is set in the url of the page, and what does rendering have to do with it?
You form the link correctly, and provided that there is an anchor in the template, everything will work.

M
Maxim Timofeev, 2017-10-26
@webinar

Form links correctly
or
or
Render has nothing to do with url

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question