Wiki

Articles in category "tips", sorted by date (updated)X
Displaying 11-20 of 97 result(s).

Adding a link to a CDataColumn

Updated 2 months ago by le_topTips3 comments – viewed 2,638 times – ( +2 )
Backoffice Grid Views often list information like Posts for a blog while showing at the same time linked information like the User who wrote that post. For more efficiency, it is appropriate that the User is displayed as a link to the User detail page.

Patching PHP code (used as a library) without changing the original code!

Updated 2 months ago by le_topTips0 comments – viewed 1,727 times – ( +3 )
The article Fixing extensions without modifying their code reminded me of another patching technique that I used. My conviction and a hard look on the web had led me to an article Redefine PHP class methods or class giving me a head start to do what I wanted: patching third party code without touching the original to allow easy upgrades.
tags: patch, patching

Configuring PhpStorm IDE for Yii

Updated 2 months ago by samdarkTips13 comments – viewed 41,792 times – ( +50 / -1 )
In order to be able to get from render or renderPartial to the view, from widget to widget class, from relations to model classes you need to install additional plugin called YiiStorm.
tags: IDE, PhpStorm

PHPStorm & NetBeans autocomplete problem

Updated 2 months ago by StagelineTips0 comments – viewed 2,921 times – ( +16 )
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 4 months ago by ajsharmaTips1 comment – viewed 2,693 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

Guidelines for good schema design

Updated 4 months ago by softarkTips13 comments – viewed 35,093 times – ( +123 )
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 5 months ago by François GannazTips0 comments – viewed 2,759 times – ( +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 5 months ago by robregonmTips1 comment – viewed 5,875 times – ( +6 )
A little hint of how to create a progress bar inside the column of the grid, using the 'bootstrap' extension.

How to upload image(photo), and path entry in database with update functionality

Updated 5 months ago by kiran sharmaTips9 comments – viewed 29,995 times – ( +19 )
I saw many posts that community newbie is confuse in image/photo upload with random name. so I post this topic covering all useful things regarding to image/photo upload(not covering image attribute related functionality)

An Easy Solution for Dependent dropDownList Using AJAX

Updated 5 months ago by mrsTips5 comments – viewed 12,944 times – ( +6 )
Sometimes new Yii guys face problem to manage dependent dropDownList using AJAX. I am going to discuss an easy solution about this issue.