How to add additional variables in yii url -


I am working with the Yii framework and I want to implement all kinds of different "url" button I am trying. My first plan was to only add variables to the URL, where the "Create PDF" button is linked:

  'url' = & gt; Yii :: app () - & gt; Request-> GetUrl () '& Amp; Pdf = true ',   

and it works fine on all links except that when I enter the site directly like: www.example.com in that case there is no index in the URL Is not .php, so the button link is unusable because it looks like this:

www.example.com/&pdf=true

What is there Yii's adding variables in the URL Or do you need to check manual?

you can add your parameter) CMap :: mergeArray ($ _ GET, array ( 'Pdf' = & gt; 'true')) and

for the original parameter and use the Yii :: app () - & gt; CreateUrl or your controller's createUrl function:



Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -