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

ios - Is 'init' forbidden as *part* of a variable name? -

c# - Get the Class name in a class with atribute inside a attribute method -

file - Python: AttributeError: 'str' object has no attribute 'readlines' -