We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e6fb5d commit eb527d6Copy full SHA for eb527d6
1 file changed
user_guide_src/source/libraries/uri/016.php
@@ -2,5 +2,5 @@
2
3
$uri = new \CodeIgniter\HTTP\URI('http://www.example.com/some/path');
4
5
-echo $uri->getPath(); // 'some/path'
6
-echo $uri->setPath('another/path')->getPath(); // 'another/path'
+echo $uri->getPath(); // '/some/path'
+echo $uri->setPath('/another/path')->getPath(); // '/another/path'
0 commit comments