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

Add galleryPath for portability #5

Open
dbd5 opened this issue May 5, 2017 · 0 comments
Open

Add galleryPath for portability #5

dbd5 opened this issue May 5, 2017 · 0 comments

Comments

@dbd5
Copy link

dbd5 commented May 5, 2017

Hi @onmotion ,

I suggest you include a public variable for the gallery path in the module for more portability.

For example in main config file;
`
...

'gallery' =>
[
'class' => 'onmotion\gallery\Module',
'galleryPath' => '@storage/web/img/gallery/',
],
`
In the module;
...

public $galleryPath = '@app/web/img/gallery/';

Then replace every instance of @app/web/img/gallery/' in the controller with $this->module->galleryPath

Thanks once again,

Adam

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant