samedi 18 avril 2015

Retrieve data by user id in yii2

I am working on a yii2 project. In this project there are 3 types of user. super admin, marketing and researcher. as a marketer when i first log in and press on restaurant directory menu this shows all the data from table which inserted all types of user. that is no problem. but problem is that when i go to my profile page and click on 'my entries' button then this goes to same page (restaurant directory) like before and shows all the data but i want to see only my data which i have inserted.


what can i do now? i am beginner at yii2. need your help please.


in row php i would manage this by passing value throw '?' sign and catching this value through get method. but in yii2 how can i do this?


is it possible to show the data in same page for these 2 types scenario?


Aucun commentaire:

Enregistrer un commentaire