Wiki

Sorted by viewsX
Displaying 481-490 of 783 result(s).

Alternative folder structure for a standard Yii app

Created 3 years ago by TrejderHow-tos4 comments – viewed 14,175 times – ( +5 ) – version 1.1
I found a standard Yii app's protected folder structure nearly perfect. With a few simple moves and a little bit change to the code, I managed to bring it to the level, which I found as fully perfect. I want to share my point of view, in case someone would like to use this structure as well.

Book Has Author - Many to Many relations using Kartik\Select2

Created 2 years ago by thiagoc7How-tos2 comments – viewed 14,082 times – ( +3 ) – version 2.0
I could make this work following same useful tips from this post.

More security in your applications with Yii and PHPIDS

Created 6 years ago by Rafael GarciaHow-tos1 comment – viewed 14,015 times – ( +8 ) – version 1.1
PHPIDS is a well known project that can be found in php-ids.org.
tags: phpids, security

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

Created 5 years ago by dinhtrungTips2 comments – viewed 14,002 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,947 times – ( +3 / -3 ) – version 2.0
First of all, install yii2 basic template according below link:

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

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

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

Created 4 years ago by Xgamer99Tips3 comments – viewed 13,881 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.

AutoTimestampBehavior

Created 8 years ago by jonahTutorials1 comment – viewed 13,752 times – ( +2 / -2 ) – version 1.1
Note: currently a variant of this class CTimestampBehavior is included into Yii distribution package.

Update related models of a model using listBox and checkBoxList in the form

Created 2 years ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 13,722 times – ( +2 ) – version 1.1
Suppose you want to have a list in Category with its related products and you want to updates the list (removing or insert product items) This wiki show us how to do that

Yii 1.1: How To add id or class to CMenu items ?

Created 2 years ago by Louis GacHow-tos0 comments – viewed 13,601 times – ( +2 ) – version 1.1
CMenu comes with a lot of great customization options built in. One of the most used is the class 'active' being added to menu item. But, what if you want to add your own class or id to a menu item ?