Wiki

Sorted by viewsX
Displaying 461-470 of 751 result(s).

Getting nulls from database instead of empty strings

Created 4 years ago by samdarkTips2 comments – viewed 10,090 times – ( +13 ) – version 1.1
To get null from database instead of empty strings you need to set up your DB connection as follows:
tags: database, null

PHPStorm & NetBeans autocomplete problem

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

Limit a CGridView field to some preset length.

Created 2 years ago by le_topHow-tos1 comment – viewed 9,959 times – ( +13 ) – version 1.1
Sometimes text inside a gridview column is just too long. That's why I figured out a way to make the column smaller while still providing the information.

Save or Update Multiple related model values in one Tabular input form

Created about a year ago by Kostas Apazidis (KonApaz)Tutorials4 comments – viewed 9,927 times – ( +1 / -7 ) – version 1.1
In this wiki I will show you how to save/update a model with many related model For example: How to set a product to multiple categories only in one post form ?

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

Created 2 years ago by sebTips0 comments – viewed 9,852 times – ( +1 / -1 ) – version 1.1
Speedup unit tests by moving MySql data to memory [Ubuntu]
tags: mysql, unit test

How to use imagine ( crop, thumb, effects for images ) on Yii2

Created 8 months ago by Anas AbuDayahTutorials0 comments – viewed 9,825 times – ( +6 ) – version 2.0
Imagine adds most common image functions and also acts as a wrapper to Imagine image manipulation library.

How to customize error handling in console-mode applications

Created 4 years ago by Steve FriedlHow-tos1 comment – viewed 9,775 times – ( +3 ) – version 1.1
One can control the detail of a web application in the webroot/index.php file by manipulating the values of YII_DEBUG and YII_TRACE_LEVEL, but these don't appear to be used by console applications. This is because although the base CApplication class defines a displayError() method that does consider these variable, CConsoleApplication overrides it with a function that doesn't honor them.

How to display page on fancybox...using CHtml::ajaxlink with yii validation

Created about a year ago by Ankit ModiTutorials2 comments – viewed 9,772 times – ( +2 ) – version 1.1
1) include the fancybox extesion otherwise fancybox js

How to catch and log MySQL deadlock errors

Created 3 years ago by sebTips1 comment – viewed 9,755 times – ( +4 ) – version 1.1
This method allows to log InnoDB monitor output when deadlock error occured. This way we will have much more useful data to find and fix deadlock.
tags: database

How to obtain a grammatically correct translation of the model name in giix-generated view files

Created 3 years ago by c@cbaHow-tos0 comments – viewed 9,728 times – ( +4 ) – version 1.1
The giix code generator has out of the box i18n support for model names and attribute labels (besides other cool features > check it out!) . But I want to factor in not only the plural form, but also the grammatical cases (especially the accusative) while translating 'Manage Objects', 'Create Object', 'Edit Object' etc.