Sorted by viewsX
Displaying 431-440 of 786 result(s).

Radio Button List with enum values for column of type ENUM >+> incorporate into giix

Created 5 years ago by pckabeerHow-tos1 comment – viewed 19,166 times – ( +7 / -1 ) – version 1.1
Let's say our table 'mug' has a column named 'color' of the type ENUM('red','green','blue'). We want to replace the textfield for the attribute color in the create and update forms of a 'mug' with a Radio Button List, which has the enum values as options. This is a rewrite of c@cba in the wiki article of enumDropdownListThe main code was contributed by zaccaria in the forum (see this post).

Upload CSV File

Created 5 years ago by bhavesh vaghelaTutorials2 comments – viewed 18,967 times – ( +8 / -1 ) – version 1.1
View file

Extending an ActiveRecord model

Created 5 years ago by BogseyHow-tos3 comments – viewed 18,956 times – ( +2 / -4 ) – version 1.1

Using Grunt for deploying client scripts

Created 5 years ago by Chris83How-tos8 comments – viewed 18,954 times – ( +11 / -1 ) – version 1.1
For a long time I have struggled to find a suitable tool for doing server tasks such as compiling LESS files, concatenating and minifying of JavaScript files and copying the minified JavaScript files. While most of these tasks can be done with Yii extensions I would still not recommend using them because it requires you to include these extensions in your project, and therefore also deploying them in your production environment.

Create a custom menu using CMenu data-items (flat or tree structure)

Created 4 years ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 18,924 times – ( +4 / -1 ) – version 1.1
There are cases that you want more control to your menu Suppose you want a specific menu with complex css, layout, images. also you want to add extra content,html,css,javascript etc it run time foreach submenu item by conditions.

CSV Export

Created 5 years ago by JohnPollardHow-tos5 comments – viewed 18,784 times – ( +4 / -1 ) – version 1.1
I needed a csv export function for my cgridview and I wanted to export the entire result set of the sorted and filtered cgridview the user was viewing via ajax.
tags: csv, export

Code style

Created 7 years ago by zaccariaTips2 comments – viewed 18,759 times – ( +30 / -1 ) – version 1.1
Often, when writing widgets or editing Yii code, it is unclear whether or not the code is following the MVC pattern.
tags: mvc

Generate a multi-lever array sub-category for a menu

Created 4 years ago by Kostas Apazidis (KonApaz)How-tos8 comments – viewed 18,655 times – ( +10 / -1 ) – version 1.1
Everyone have seen a multilayer menu in several CMS

Simple Mail Queue

Created 4 years ago by waterloomattTutorials3 comments – viewed 18,624 times – ( +10 / -3 ) – version 1.1
This tutorial shows how to create a simple mail queue. It is usually run from a cron job but can be run from the command line too.

Add model validator in Controller

Created 3 years ago by Kostas Apazidis (KonApaz)Tips4 comments – viewed 18,606 times – ( +1 / -2 ) – version 1.1
There are cases that model validators should be depended by controller/action and you couldn't manipulate on the model class or using scenarios in easy way