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,319 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,082 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?

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

Created 3 years ago by dinhtrungTips2 comments – viewed 11,957 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,006 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 about a month ago by Misbahul D MunirTips2 comments – viewed 1,739 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 about a month ago by Scott_HuangTips2 comments – viewed 2,036 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 29,552 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,255 times – ( -1 )
Hi Friends,

How to catch and log MySQL deadlock errors

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

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

Created 2 years ago by LuizTips1 comment – viewed 12,474 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.