Wiki

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

How to use a component before every action of a controller

Updated 2 months ago by transistorTips1 comment – viewed 3,370 times – ( +1 )
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.

The directory structure of the Yii project site

Updated 3 months ago by Yang HeOthers28 comments – viewed 70,746 times – ( +76 )
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

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

Updated 5 months ago by ajsharmaTips1 comment – viewed 2,871 times – ( +2 / -1 )
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 server and never (generally speaking) - on the production.
tags: config

YiiBoilerplate - Setup a professional project structure in seconds

Updated 7 months ago by Antonio RamirezOthers49 comments – viewed 23,272 times – ( +42 )
YiiBoilerplate
tags: directory, config

Setting static modules' properties in config

Updated 8 months ago by Alexander PalamarchukTips0 comments – viewed 2,924 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

YiiBackboneBoilerplate - Project Setup for your Yii+BackboneJS applications

Updated 9 months ago by Antonio RamirezOthers4 comments – viewed 10,581 times – ( +11 )
YiiBackboneBoilerplate
tags: directory, config

Setting application parameters dynamically in the back-end

Updated about a year ago by PablovpTutorials4 comments – viewed 17,567 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

Updated about a year ago by ifdatticTips2 comments – viewed 16,991 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.

Manage application configuration in different modes

Updated about a year ago by 张 迪Tutorials4 comments – viewed 21,393 times – ( +14 )
Info: This tutorial references the idea presented in Jonah's excellent blog article.

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

Updated about a year ago by Steve FriedlHow-tos5 comments – viewed 25,131 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