# Method getParam() does not exist

**URL:** <https://discourse.cakephp.org/t/method-getparam-does-not-exist/2068>\
**Category:** Need Help\
**Created:** [February 14, 2017, 2:11pm UTC](https://discourse.cakephp.org/t/method-getparam-does-not-exist/2068 "2017-02-14T14:11:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![linuxaddikt](https://avatars.discourse-cdn.com/v4/letter/l/e9a140/32.png) [@linuxaddikt](https://discourse.cakephp.org/u/linuxaddikt)\
**Post date:** [February 14, 2017, 2:11pm UTC](https://discourse.cakephp.org/t/method-getparam-does-not-exist/2068/1 "2017-02-14T14:11:05Z")

</div>

Hi,

I’m new to CakePHP 3.3 and I get into a problem trying to replicate the Bookmarker Quick Start tutorial and I just can’t figure what’s wrong. I Googled for the solution and searched on this forum without success as you can tell 😉

Any help to get me going would be appreciated.

> public function tags()  
> {  
> // The ‘pass’ key is provided by CakePHP and contains all  
> // the passed URL path segments in the request.  
> $tags = $this-\>request-\>**getParam(‘pass’)**;  
> // Use the BookmarksTable to find tagged bookmarks.  
> $bookmarks = $this-\>Bookmarks-\>find(‘tagged’, [  
> ‘tags’ =\> $tags  
> ]);  
> // Pass variables into the view template context.  
> $this-\>set([  
> ‘bookmarks’ =\> $bookmarks,  
> ‘tags’ =\> $tags  
> ]);  
> }

---

<div class="post-metadata">

**Author:** ![ali](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/ali/32/123_2.png) [@ali](https://discourse.cakephp.org/u/ali)\
**Post date:** [February 15, 2017, 3:24am UTC](https://discourse.cakephp.org/t/method-getparam-does-not-exist/2068/2 "2017-02-15T03:24:48Z")

</div>

I believe getParam() is only available in CakePHP 3.4+.  
For 3.3 and below you can simply use “params”, i.e. $this-\>request-\>params[‘pass’]
