Using YII2 core funcionality

Hi!

I’m developing a web site/game, for which I’ll use Unity for a better user experience and I intend to use Yii2 administration (Gii) for the owner of the site/game, to fill up the rightest data in the DB.

I’m fammiliar with Yii2 well, and I’m pretty sure that someone can tell me how to create a file.php (using Yii 2 core), so when I’ll call this file.php?id=1 (via URL, from Unity), it will output some data in an organised way (Json, CSV, …).

That’s what I want, all the Yii2 funcionality (that I will use in administration mode) to use for some DB queries, and other helpers well.

Thanks, Luka

http://www.yiiframework.com/doc-2.0/guide-rest-quick-start.html

1 Like