Wiki

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

The directory structure of the Yii project site

Created 3 years ago by qiangOthers40 comments – viewed 120,629 times – ( +81 ) – version 1.1
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

YiiBoilerplate - Setup a professional project structure in seconds

Created 2 years ago by Antonio RamirezOthers53 comments – viewed 47,159 times – ( +47 ) – version 1.1
YiiBoilerplate
tags: directory, config

Manage application configuration in different modes

Created 5 years ago by qiangTutorials5 comments – viewed 30,735 times – ( +16 ) – 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)

Created 3 years ago by Steve FriedlHow-tos8 comments – viewed 39,940 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

YiiBackboneBoilerplate - Project Setup for your Yii+BackboneJS applications

Created 2 years ago by Antonio RamirezOthers5 comments – viewed 18,661 times – ( +14 ) – version 1.1
YiiBackboneBoilerplate
tags: directory, config

Setting and getting systemwide static parameters

Created 3 years ago by Steve FriedlHow-tos3 comments – viewed 61,969 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

How to store array/widget configuration to the database with config validation rules

Created 6 months ago by Kartik VTutorials0 comments – viewed 2,261 times – ( +29 / -4 ) – version 2.0
You may have scenarios, where you want to store a specific array configuration to the database. A classic example could be saving Yii widget configuration to the database and then retrieving it at runtime, with dynamic parameters set. This wiki discusses one of the approaches to do this. Let's consider you have something like the NavBar configuration below to store in the db:

How to hide /frontend/web in url addresses on apache

Created about a month ago by raminiousHow-tos8 comments – viewed 26,240 times – ( +9 ) – version 2.0
There is an issue on Yii2 to redirecting / urls to /frontend/web. In other words we need a way to hidden /frontend/web from addresses. We will do this without changing Apache configuration and creating virtual host or setting document root (It's good for share hostings that we have not access to apache.conf)

Setting application parameters dynamically in the back-end

Created 2 years ago by PablovpTutorials6 comments – viewed 29,640 times – ( +12 / -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.

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

Created 3 years ago by Steve FriedlFAQs3 comments – viewed 43,921 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