The Cookbook»1.2 Collection»The Manual»Developing with CakePHP»Controllers»Controller Attributes»The Parameters Attribute ($params)»url
{3367} - 3.5.2.4.8 url
$this->params['url']
$this->params['url']
Stores the current URL requested, along with key-value pairs of get variables. For example, if the URL /posts/view/?var1=3&var2=4 was called, $this->params['url'] would contain:
[url] => Array
(
[url] => posts/view
[var1] => 3
[var2] => 4
)
{3903} - 3.5.2.4.8 url
$this->params['url']
Stores the current URL requested, along with key-value pairs of get variables. For example, if the URL /posts/view/?var1=3&var2=4 was called, $this->params['url'] would contain:
[url] => Array
(
[url] => posts/view
[var1] => 3
[var2] => 4
)
Differences
| Lines: 1-7 | Lines: 1-7 | ||
| <title>url</title> | <title>url</title> | ||
| - | <pre>$this-&gt;params['url']</pre> <p>Stores the current URL requested, along with key-value pairs of get variables. For example, if the URL /posts/view/?var1=3&var2=4 was called, $this-&gt;params['url'] would contain:</p> |
+ | <p class="method"><code>$this->params['url']</code></p> <p>Stores the current URL requested, along with key-value pairs of get variables. For example, if the URL <kbd>/posts/view/?var1=3&var2=4</kbd> was called, <code>$this->params['url']</code> would contain:</p> |
| <pre class="plain"> | <pre class="plain"> | ||
| [url] => Array | [url] => Array | ||
| ( | ( | ||
| [url] => posts/view | [url] => posts/view | ||
