Wiki

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

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

Created 2 years ago by Kartik VTips2 comments – viewed 14,695 times – ( +48 ) – 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.

adding class and links to Ctreeview node

Created 5 years ago by bingjie2680Tips2 comments – viewed 14,593 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 years ago by Misbahul D MunirTips4 comments – viewed 14,402 times – ( +2 ) – version 2.0
In yii2 we can create form without create FormModel. Here we go
tags: form, yii2, model

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

Created 5 years ago by dinhtrungTips2 comments – viewed 13,992 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.

Easy way to redirect http:\\localhost\yii2-basic to http:\\localhost\yii2-basic\web\index.php

Created 2 years ago by Scott_HuangTips0 comments – viewed 13,866 times – ( +3 / -3 ) – version 2.0
First of all, install yii2 basic template according below link:

Adding 'disabled' to CCheckBoxColumn and support for yiigridview.js

Created 4 years ago by Xgamer99Tips3 comments – viewed 13,862 times – ( +1 ) – version 1.1
I recently had to have a checkbox column in my grid view that supported the 'disabled' attribute. This was easy enough to do by extending the CCheckBoxColumn. However, I also wanted the checkbox to be selected when clicking on the table's row (supported via CGridView's selectableRows option). I discovered I had to tweak yiigridview.js so that it would not select disabled rows when clicking on it or on the 'select all' checkbox.

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

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

How to ensure unicity to url

Created 5 years ago by zaccariaTips3 comments – viewed 13,585 times – ( +14 ) – version 1.1
Many time for SEO porpouses is important that each page will have a unique address.
tags: SEO, unique, URL

PHPStorm & NetBeans autocomplete problem

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

Model validation for field ranges using yii2-field-range extension

Created 2 years ago by Kartik VTips0 comments – viewed 13,119 times – ( +39 ) – version 2.0
The yii2-field-range extension enables you to easily setup ActiveField range fields with Bootstrap styling. You basically can setup two attributes joined together like a single field with combined validation error block.