Wiki

Articles tagged with "config", sorted by viewsX
Displaying 1-10 of 12 result(s).

The directory structure of the Yii project site

Created 2 years ago by qiangOthers28 comments – viewed 66,578 times – ( +74 )
In this article, we describe the directory structure used by yiiframework.com - the official Yii framework website. While this structure may look overly complicated for small projects or may not be optimal in some sense, we believe it is appropriate for medium or large projects in a team development environment. In fact, we have successfully used the similar structure in some other big projects.
tags: directory, config

Setting and getting systemwide static parameters

Created 2 years ago by Steve FriedlHow-tos2 comments – viewed 28,855 times – ( +10 )
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

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

Created 2 years ago by Steve FriedlHow-tos5 comments – viewed 24,205 times – ( +22 / -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?"

Created 2 years ago by Steve FriedlFAQs2 comments – viewed 23,230 times – ( +7 )
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

YiiBoilerplate - Setup a professional project structure in seconds

Created 8 months ago by Antonio RamirezOthers49 comments – viewed 21,510 times – ( +40 )
YiiBoilerplate
tags: directory, config

Manage application configuration in different modes

Created 4 years ago by qiangTutorials4 comments – viewed 20,881 times – ( +14 )
Info: This tutorial references the idea presented in Jonah's excellent blog article.

Setting application parameters dynamically in the back-end

Created about a year ago by PablovpTutorials4 comments – viewed 16,698 times – ( +10 / -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

Created about a year ago by ifdatticTips2 comments – viewed 16,035 times – ( +8 / -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.

YiiBackboneBoilerplate - Project Setup for your Yii+BackboneJS applications

Created 8 months ago by Antonio RamirezOthers4 comments – viewed 9,873 times – ( +10 )
YiiBackboneBoilerplate
tags: directory, config

Setting static modules' properties in config

Created 7 months ago by Alexander PalamarchukTips0 comments – viewed 2,774 times – ( +2 / -2 )
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