Sorted by viewsX
Displaying 501-510 of 779 result(s).

Encapsulate db and module configurations

Created 7 years ago by ricardogranaTutorials3 comments – viewed 12,305 times – ( +7 ) – version 1.1
This method was inspirated on the excellent text about different environments available at
tags: module

CGridView Date Range Without Cookies or Session (External Filtering)

Created 3 years ago by ezekielnoobHow-tos6 comments – viewed 12,272 times – ( +5 ) – version 1.1
Here's a tutorial on how to create a CGridView with external date filters the trick is to create hidden columns within the CGridView Filters something like in the example below:

Advanced CTabView using CClipWidget

Created 7 years ago by krillzipTutorials1 comment – viewed 12,247 times – ( +2 ) – version 1.1
Here is a way to dynamically extend tabs based on clips. Probably even more complex things could be done.

Using sub query for doubletts

Created 4 years ago by mbTips3 comments – viewed 12,146 times – ( +2 ) – version 1.1
find doubletts by db fields. in this example i will check doublets for 3 tabelfields (col1,col2,col3). so i will get a subquery with the condition, select and grouping of the tablefields. the having with COUNT() > 1 means: find all records more then one result.

default csrf security and ajax post in one controller

Created 2 years ago by jasonbanTutorials3 comments – viewed 12,145 times – ( +1 / -3 ) – version 1.1
Hello Yii friends

How to extend CFormatter, add i18n support to booleanFormat and use it in CDetailView

Created 4 years ago by c@cbaHow-tos3 comments – viewed 12,098 times – ( +9 ) – version 1.1
As you know, the CDetailView widget displays details of a single model. If no formatting is specified, boolean values that are stored in the database as 0 and 1, are represented in the detail view as 0 and 1. If formatted as boolean, they are represented as 'No' and 'Yes'. We want to add i18n support, so that Yes and No appear in the current language.

Limit a CGridView field to some preset length.

Created 3 years ago by le_topHow-tos1 comment – viewed 12,069 times – ( +13 ) – version 1.1
Sometimes text inside a gridview column is just too long. That's why I figured out a way to make the column smaller while still providing the information.

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

Created about a year ago by Scott_HuangTips0 comments – viewed 12,035 times – ( +3 / -3 ) – version 2.0
First of all, install yii2 basic template according below link:

CRUD operation in Yii framework

Created 2 years ago by Mohammad FareedTutorials4 comments – viewed 12,020 times – ( +1 / -6 ) – version all
Simple Yii Script for performing CRUD operations:

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

Created 2 years ago by Louis GacHow-tos0 comments – viewed 12,020 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 ?