Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Need Help On How To Pass Multiple Parameters To An Action

$
0
0
Hi there,
could anybody give some advice on how to configure the action to accept multiple parameters? let's say, the URL is something like this:

www.domain.com/index.php/FooController/SomeAction/params

where params could be something like

cat/id

or

cat=3/id=5

or

cat=5&id=6&foo=something

I realized that my actual configuration only accepts one numeric parameter to be handled by

public function actionFoo ($int)
{
...
}

I appreciate your help

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>