Wiki

Sorted by viewsX
Displaying 261-270 of 784 result(s).

Keeping a running total in a CGridView

Created 6 years ago by Steve FriedlHow-tos4 comments – viewed 31,847 times – ( +24 / -1 ) – version 1.1
This tip created in conjunction with IRC #yii channel users emilsedgh and tydeas - thanks!
tags: CGridView

Adding a date range search for CGridView the easy way

Created 4 years ago by mikewalenTips6 comments – viewed 31,713 times – ( +12 / -2 ) – version 1.1
After a lot of research, everything I found on adding date range searching to a CGridView advanced search form seemed to involve adding two new public variables (e.g. $date_from, $date_to), 'safe' rules for the new variables, and a rather chunky if/elseif/else check in the search() method. This probably isn't a hassle for most, but because many of the tables in my database contain two or three and sometimes four date columns (e.g. date_created, date_modified, date_deleted etc.), it meant I was having to add up to eight public variables, the corresponding safe rules, and modifying the search() criteria for each date attribute. So, I set about creating a better way and I thought I'd share my work with the community.

Take more control of CGridview and model searching (related model or another controller)

Created 3 years ago by Kostas Apazidis (KonApaz)How-tos5 comments – viewed 31,711 times – ( +5 / -1 ) – version 1.1
Suppose you have an Application in Yii that manages hotels each one has many customers.

Secure password hash storage and a Yii helper extension

Created 5 years ago by fsbTutorials5 comments – viewed 31,444 times – ( +15 / -1 ) – version 1.1
Obsolete

Starting your Yii Project Reference Guide (with Git VCS in Linux)

Created 5 years ago by marcanuyTutorials5 comments – viewed 31,217 times – ( +18 / -1 ) – version 1.1
I've found useful to have a step by step reference guide to work with Git with most used commands, feel free to update it with useful information you may find interesting too.

Clean JavaScript code in your views

Created 3 years ago by nineinchnickTutorials6 comments – viewed 31,146 times – ( +20 / -1 ) – version all
This tutorial presents a way of separating JS code from views and passing to it values from PHP.

Eclipse PDT - code-hints, references and other goodies

Created 8 years ago by mindehTutorials2 comments – viewed 30,679 times – ( +14 / -1 ) – version 1.1
Since PHP is dynamically typed language, the way IDE may help you is limited.
tags: IDE

Ember.js with Yii REST backend,demo application

Created 4 years ago by drumaddictOthers4 comments – viewed 30,596 times – ( +10 / -2 ) – version 1.1
Ember with Yii REST backend,demo application.

Yii实战中8个必备常用的扩展,模块和

Created 6 years ago by Darwin WenTips2 comments – viewed 30,582 times – ( +2 / -4 ) – version 1.1
在经过畅K网的实战后,总结一下在Yii的项目中会经常用到的组件和一些基本的使用方法,分享给大家,同时也给自己留个备忘录,下面我以代码加图片说明.
tags: module, Widgets

Serve jQuery and jQuery-UI from Google's CDN

Created 5 years ago by YetiTutorials15 comments – viewed 30,363 times – ( +14 / -2 ) – version 1.1
There are good reasons to use Google's Content Delivery Network (CDN) to serve jQuery and jQuery UI on your site: