Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

[Docs] How to configure a module with a config file? #10

Closed
pana1990 opened this issue May 16, 2017 · 3 comments
Closed

[Docs] How to configure a module with a config file? #10

pana1990 opened this issue May 16, 2017 · 3 comments
Labels

Comments

@pana1990
Copy link
Contributor

this config samdark/yii2-cookbook#169 but with sidekit, is it possible?

@tonydspaniard
Copy link
Member

Yes, of course... as you can see the "folders" are the actual main sections on the array on this sample configuration template.

@krukru
Copy link

krukru commented Jun 26, 2018

Hello @tonydspaniard I just started with your template and quickly realised that I cannot find examples on how to set modules. I am sure this seems intuitive for a Yii expert, but it would be really nice if you could help me out as well as other people who are asking this question.
Having better examples and documentation would help this nice template get better traction. Thanks!

@tonydspaniard
Copy link
Member

@krukru simply create a file with the name of the module (ie user.php <--- that is the key to your module) and place it on the modules folder. The file should return an array with the configuration of the module. Thats it.

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

No branches or pull requests

3 participants