Wiki

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

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

Updated 3 months ago by Kartik VTutorials0 comments – viewed 1,553 times – ( +26 / -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:

Configuring Yii to run on both Windows and OSX

Updated 4 months ago by CeBeHow-tos2 comments – viewed 2,322 times – ( +2 ) – version 1.1
If you develop your Yii project on both Windows and Mac, there can be a problem setting up the configuration unless the configurations for both system are identical. On my machines I have the following configurations:
tags: config

Multiple Enviroments - Only with files

Updated 4 months ago by CeBeTips0 comments – viewed 2,121 times – ( -6 ) – version 1.1
The idea of ‚Äč‚Äčthis wiki is to show how to have a development environment .

How to use a component before every action of a controller

Updated about a year ago by transistorTips1 comment – viewed 16,511 times – ( +2 / -1 ) – version 1.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 about a year ago by Yang HeOthers37 comments – viewed 113,808 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

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

Updated about a year ago by ajsharmaTips1 comment – viewed 4,848 times – ( +2 / -1 ) – version 1.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 about a year ago by Antonio RamirezOthers53 comments – viewed 44,394 times – ( +47 ) – version 1.1
YiiBoilerplate
tags: directory, config

Setting static modules' properties in config

Updated about a year ago by Alexander PalamarchukTips0 comments – viewed 5,125 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 about a year ago by Antonio RamirezOthers5 comments – viewed 17,921 times – ( +14 ) – version 1.1
YiiBackboneBoilerplate
tags: directory, config

Setting application parameters dynamically in the back-end

Updated 2 years ago by PablovpTutorials6 comments – viewed 27,937 times – ( +11 / -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.