<p>As far as I know the only documentation you will find for this in the section called "Changes in Craft3", then scroll down to "Template Functions" <a href="https://docs.craftcms.com/v3/changes-in-craft-3.html#template-functions" rel="nofollow noreferrer">https://docs.craftcms.com/v3/changes-in-craft-3.html#template-functions</a></p>

<p>If you want a better explanation, go to the Craft 2 docs - conceptually the same, different syntax.<a href="https://docs.craftcms.com/v2/templating/craft.request.html" rel="nofollow noreferrer">https://docs.craftcms.com/v2/templating/craft.request.html</a></p>

CC BY-SA 4.0
2018-09-28T18:51:35.630Z
2018-09-28T18:51:35.630Z
Roi Agneta
<p>Can someone point me to the craft 3 docs where I can find informations about the request template function: </p>

<p>craft.app.request.getSegment(2)</p>

<p>I'm really struggling understanding the craft cms 3 docs...
Only found this:</p>

<p>this is deprecated:
<a href="https://docs.craftcms.com/api/v3/craft-web-request.html" rel="nofollow noreferrer">https://docs.craftcms.com/api/v3/craft-web-request.html</a></p>

<p>this contains the old and new functions names:
<a href="https://docs.craftcms.com/v3/changes-in-craft-3.html#template-functions" rel="nofollow noreferrer">https://docs.craftcms.com/v3/changes-in-craft-3.html#template-functions</a></p>

<p>thank you
Francesco</p>

<craft3><request>
craft 3 request
# craft 3 request

(Asked by: username_0 on 2018-09-28)

Can someone point me to the craft 3 docs where I can find informations about the request template function:

craft.app.request.getSegment(2)

I'm really struggling understanding the craft cms 3 docs...
Only found this:

this is deprecated:
<https://docs.craftcms.com/api/v3/craft-web-request.html>

this contains the old and new functions names:
<https://docs.craftcms.com/v3/changes-in-craft-3.html#template-functions>

thank you
Francesco

**Tags:** craft3, request


---

## 1 answers

### Answer by username_1 on 2018-09-28. Score: 0 | Accepted answer

As far as I know the only documentation you will find for this in the section called "Changes in Craft3", then scroll down to "Template Functions" <https://docs.craftcms.com/v3/changes-in-craft-3.html#template-functions>

If you want a better explanation, go to the Craft 2 docs - conceptually the same, different syntax.<https://docs.craftcms.com/v2/templating/craft.request.html>


---

