Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[libs] optimize library access #83

Open
jambtc opened this issue Feb 21, 2020 · 0 comments
Open

[libs] optimize library access #83

jambtc opened this issue Feb 21, 2020 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@jambtc
Copy link
Member

jambtc commented Feb 21, 2020

in main.php

$libsPath = dirname(FILE).DIRECTORY_SEPARATOR.'../../../libs/';
Yii::setPathOfAlias('libs', $libsPath);

Call class in this way:
'myClass' => array( 'class' => 'libs.folder.myClass' ),

@jambtc jambtc added the documentation Improvements or additions to documentation label Feb 21, 2020
@jambtc jambtc self-assigned this Feb 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant