Wiki

Articles in category "tips", sorted by commentsX
Displaying 71-80 of 141 result(s).

Getting nulls from database instead of empty strings

Created 3 years ago by samdarkTips2 comments – viewed 9,416 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

A simple class to use a different db for a module

Created 3 years ago by tydeas_drTips2 comments – viewed 13,265 times – ( +9 ) – version 1.1
What would you do if you want/need to have a different than the main database connection in an module's models?

PHPStorm & NetBeans autocomplete problem

Created about a year ago by StagelineTips2 comments – viewed 8,576 times – ( +23 ) – version 1.1
The problem: If you type Yii::app()->user<ctrl+space> code completion didn't work. This solve it.

Using MBMenu and Rights to automatically create menu item for your modules

Created 3 years ago by dinhtrungTips2 comments – viewed 12,042 times – ( +1 / -1 ) – version 1.1
Using Rights generator component, we can easily create a dynamic menu, in which we scan every modules' controllers, to access the index page of them.

adding class and links to Ctreeview node

Created 3 years ago by bingjie2680Tips2 comments – viewed 12,161 times – ( +4 ) – version 1.1
This article will show you how to add links and class to each node in ctreeview. so you can attach events in js by obtaining handler on anchor or class.
tags: ctreeview, link, class

Create Form With DynamicModel

Created 2 months ago by Misbahul D MunirTips2 comments – viewed 2,136 times – version 2.0
In yii2 we can create form without create FormModel. Here we go
tags: form, yii2, model

Step by step for how to full export Yii2 grid to excel

Created 2 months ago by Scott_HuangTips2 comments – viewed 2,900 times – version 2.0
We will leverage Yii2-excelview widget. So, first of all is install Yii2-excelview:

Customizing the CMenu Widget

Created about a year ago by mistrybTips1 comment – viewed 30,719 times – ( +5 / -1 ) – version 1.1
The CMenu class provides some useful features for generating menus in your web application.

How to Display tooltp(qtip) on CGridview dynamic

Created about a year ago by Ankit ModiTips1 comment – viewed 5,387 times – ( -1 )
Hi Friends,

How to catch and log MySQL deadlock errors

Created 2 years ago by sebTips1 comment – viewed 8,825 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