Reputation: 2885
I want to call rest API from view in YII.I know how to call it from simple PHP.
But I dont know how to call it in YII manner.what is the right way to call it in YII?
Upvotes: 1
Views: 6048
Reputation: 4145
As Yii 1.1
you've not a framework class to do the requests, but you can use Guzzle a powerfull PHP HTTP client:
As Yii 2.0 you can use yii2-httpclient:
Upvotes: 4