 <p>Well just to help other fellows I have retrieve the value of $alias using the following approach:</p> <pre><code>$alias = \Yii::$app-&gt;request-&gt;get('alias'); </code></pre> <p>But definitely this is not an accurate answer of the question. I still didn't know what i am doing wrong that i didn't get the value using the approach mentioned in question.</p>