Wiki

Articles in category "tips", sorted by date (updated)X
Displaying 81-90 of 153 result(s).

PHPStorm & NetBeans autocomplete problem

Updated 3 years ago by StagelineTips3 comments – viewed 12,480 times – ( +24 ) – version 1.1
The problem: If you type Yii::app()->user<ctrl+space> code completion didn't work. This solve it.

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

Updated 3 years ago by ajsharmaTips1 comment – viewed 6,978 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

Guidelines for good schema design

Updated 3 years ago by softarkTips15 comments – viewed 82,312 times – ( +143 ) – version 1.1
Virtually all Yii applications are built on top of a database, and though Yii is very flexible in how it addresses your DB, some design choices make things more convenient than others.

Speedup unit tests by moving MySql data to memory (in Ubuntu)

Updated 3 years ago by Fran├žois GannazTips0 comments – viewed 12,958 times – ( +1 / -1 ) – version 1.1
Speedup unit tests by moving MySql data to memory [Ubuntu]
tags: mysql, unit test

BootProgressColumn - Progress Bar Inside GridView Column compatible with 'bootstrap' extension

Updated 3 years ago by robregonmTips1 comment – viewed 15,506 times – ( +7 ) – version 1.1
A little hint of how to create a progress bar inside the column of the grid, using the 'bootstrap' extension.

Adding 'disabled' to CCheckBoxColumn and support for yiigridview.js

Updated 3 years ago by Maurizio Domba CerinTips3 comments – viewed 13,176 times – ( +1 ) – version 1.1
I recently had to have a checkbox column in my grid view that supported the 'disabled' attribute. This was easy enough to do by extending the CCheckBoxColumn. However, I also wanted the checkbox to be selected when clicking on the table's row (supported via CGridView's selectableRows option). I discovered I had to tweak yiigridview.js so that it would not select disabled rows when clicking on it or on the 'select all' checkbox.

The complete beginner's study guide for the Yii Framework

Updated 3 years ago by Rodrigo CoelhoTips2 comments – viewed 78,497 times – ( +21 ) – version 1.1
Start studying the MVC pattern. You will understand the roles of the model, the view and the controller and know where goes each part of the code.

Avoiding duplicate script download when using Ajax calls to render different Views

Updated 3 years ago by Antonio RamirezTips6 comments – viewed 22,706 times – ( +13 / -1 ) – version 1.1
I had to partially render two types of views, depending on user selection. Wanted to display a GRID or a LIST style with an event that AJAX'ed new contents and update a layer with them.
tags: tutorial, AJAX, views

Setting static modules' properties in config

Updated 3 years ago by Alexander PalamarchukTips0 comments – viewed 7,665 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

[pt-br] O guia de estudos do Yii para iniciantes

Updated 3 years ago by Rodrigo CoelhoTips0 comments – viewed 8,151 times – ( +1 ) – version 1.1
You can find the english version of this wiki here: The complete beginner's study guide for the Yii Framework.