Asslamualaikum Wr.Wb
Hello I'm Fahmi Azain
i will share wiki tutorial about Creating Pdf Report / Excel Report by using Parms / Parameters.
First you should follow the requirements below:
For Pdf Report :
install pdf report extension in your yii application.
and you must to understand to create that report.
For Excel Report :
install excel report extension in your yii application.
or you can use the default report yii.
after finishing about those requirements now you can read this wiki.
Okay Let's begin
Please create new function in your models or you can look at below:
In your model | e.g. : models/Items.php
And than you have to add this code in action index.
In your controller | e.g. : controller/ItemsController.php
and now in your view/index.php you can add the code or you can look the code below:
In your view | e.g. : view/items/index.php
remain in view but you have to create new php files and use this code:
In your view | e.g. : view/items/view_item_report.php
Okay It's Done!
Don't Forget to Say Alhamdulillah for finishing your problems.
i hope it works in your apllication
Thanks For Reading
Terima Kasih!