Wiki

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

Syntax check

Created 4 years ago by Russell EnglandTips2 comments – viewed 6,834 times – ( +4 ) – version 1.1
So I've been busy making lots of modifications to my views/models/controllers - came to test the app and got a blank screen. Nothing in the application.log file so must be a syntax error somewhere... But which file?
tags: php, syntax

Key web server settings after installing a fresh Yii 2 basic or advanced app

Created 11 months ago by Kartik VTips2 comments – viewed 6,501 times – ( +44 ) – version 2.0
So, you have installed a brand new Yii 2 app (basic) or (advanced). Here are a few tips for Apache web server users to get things running more secure and better with your yii2 app.

Getting nulls from database instead of empty strings

Created 4 years ago by samdarkTips2 comments – viewed 9,891 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 14,113 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 2 years ago by StagelineTips2 comments – viewed 9,551 times – ( +24 ) – 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,418 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,729 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

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

Created 6 months ago by Scott_HuangTips2 comments – viewed 7,911 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 35,220 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 6,073 times – ( -1 )
Hi Friends,