Retrieve a value from the url with filterUrl

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:

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

Read more

Читать далее...
 
Активность
Пока что здесь никого нет
Назад
Верх Низ