Wiki

Articles tagged with "config", sorted by date (updated)X
Displaying 11-18 of 18 result(s).

Setting static modules' properties in config

Updated 2 years ago by Alexander PalamarchukTips0 comments – viewed 6,500 times – ( +2 / -2 ) – version 1.1
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.
tags: config, module

YiiBackboneBoilerplate - Project Setup for your Yii+BackboneJS applications

Updated 2 years ago by Antonio RamirezOthers5 comments – viewed 20,593 times – ( +14 ) – version 1.1
YiiBackboneBoilerplate
tags: directory, config

Setting application parameters dynamically in the back-end

Updated 3 years ago by PablovpTutorials6 comments – viewed 33,272 times – ( +13 / -1 ) – version 1.1
I was wondering how to set-up the application parameters in the back-end to use them all around the application without the need of using the database and I came up with this solution, I hope it helps somebody else.

Use application on production/development environment without making changes

Updated 3 years ago by ifdatticTips3 comments – viewed 37,651 times – ( +8 / -1 ) – version 1.1
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.

Manage application configuration in different modes

Updated 3 years ago by 张 迪Tutorials5 comments – viewed 33,809 times – ( +17 ) – version 1.1
Info: This tutorial references the idea presented in Jonah's excellent blog article.

Moving project code outside of webroot (plus multiple project support)

Updated 4 years ago by Steve FriedlHow-tos8 comments – viewed 44,177 times – ( +22 / -1 ) – version 1.1
Yii's by-default directory organization works well enough, but there are several steps one can take that improve the security and serviceability of the system, especially in the context of multiple Yii projects on the same machine (including multiple versions of the same project).
tags: config, security

"Why do I get a 403 error when trying to use Gii?"

Updated 4 years ago by Steve FriedlFAQs3 comments – viewed 51,426 times – ( +7 ) – version 1.1
After enabling the Gii module in your protected/config/main.php file and then try to use it with http://example.com/index.php?r=gii, you get an error:
tags: Gii, config

Setting and getting systemwide static parameters

Updated 4 years ago by Steve FriedlHow-tos3 comments – viewed 78,587 times – ( +11 ) – version 1.1
Occasionally one wishes to set systemwide parameters for an application, such as a contact address for email, an application name, or setting an option that guides major behavior. Yii provides for setting of static parameters in the configuration file, and this article talks about how to do it conveniently.
tags: config