php - How to call API from frontend/backend application in Yii? -


so yii structure this.

api   |modules      |v2          |actions common frontend backend 

we can call common in backend , frontend. able call backend modules in frontend module.

is possible call api i.e v2 action frontend module in yii?

this required done api module there. , avoiding backend logic need call api.

you can use soa(service oriented architecture) in yii, have create services folder in service write logics can used backend , api's both frontend api based , backend service based. below

api
    |modules
        |v2
             |actions
common
frontend
backend
services


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -