Wiki articles in category Tips tagged with "config"

Showing 1-4 of 4 items.

How to use a component before every action of a controller

Created 8 years ago by transistor, updated 8 years ago by transistor.

I guess this is a tip on how to execute some code before every action in a controller, because I will tell you how I did it and maybe you can use the idea in your project.

2 0
4 followers
Viewed: 47 687 times
Version: 1.1
Category: Tips

Setting static modules' properties in config

Created 9 years ago by Alexander Palamarchuk, updated 9 years ago by Alexander Palamarchuk.

You may face a situation when you need to access to a configurable module's property from everywhere and you don't have an instance of this module's class.

1 1
2 followers
Viewed: 12 980 times
Version: 1.1
Category: Tips
Tags: config, module

Making friends' configs, DB credentials and paths with version control

Created 9 years ago by Alexander Palamarchuk, updated 9 years ago by ajsharma.

In many cases developers of one project use their own local environments for coding. There may be a common test platform and, of course, production. All these environments usually have different DB credentials and directory structures (first of all, path to YII framework directory). Another feature is debugging. It's convenient to turn it on for local environments, eventually - on the test s...

1 1
4 followers
Viewed: 14 688 times
Version: 1.1
Category: Tips
Tags: config

Use application on production/development environment without making changes

Created 10 years ago by ifdattic, updated 10 years ago by ifdattic.

I like programing on my localhost, however it really bugged me to make changes to index.php & config files on my production server. After combining all available wiki articles on this topic and some trial and error this is what I use for my applications so I could just upload it to production server and it will work without any changes.

8 1
11 followers
Viewed: 71 374 times
Version: 1.1
Category: Tips