Retrieve a value from the url with filterUrl

Status
This content is read-only, or is not open for further replies.

grantus

Guest
offline
I'm building a page where I'm checking the params to see who is on the page, either a sender or receiver.

In my URL it would be like this:

sender: cpanel/challenge/{id here}/

receiver: cpanel/challenge/view/{alert id here}/

The issue is that since 'challenge' is in the URL for both, it's never grabbing the 'view' value from the params, so I've set up two functions like this:

Code:

Code:
public function getChallengeUserId(ParameterBag $params) {
        // Retrieve and filter the 'challenge'...

Read more

Continue reading...
 
Liked by:
Status
This content is read-only, or is not open for further replies.
Top Bottom