deerawan / yii2-advanced-api

Yii2 advanced template with RESTful API setup
Other
194 stars 157 forks source link

[bug-report] yii2-advanced-api/api/config/main.php line 16 #4

Closed zuoRambo closed 8 years ago

zuoRambo commented 9 years ago

there have some questions in the blow code:

'basePath' => '@app/modules/v1',

i think it should be

'basePath' => '@api/modules/v1’,
mehrna commented 9 years ago

@zuoRambo No, its completely true! refer to Yii2 documents: Predefined Aliases and as Kartik V lists path aliases here, @app is current application's (frontend/backend/console/api) root directory in advanced template.

deerawan commented 8 years ago

@mehrna agree with you! 👍