Wiki

Articles in category "how-tos", sorted by viewsX
Displaying 151-160 of 309 result(s).

Open Dialog from ajax content

Created about a year ago by TouzasHow-tos1 comment – viewed 11,083 times – ( +4 / -1 ) – version 1.1
This tutorial will show you how to create Ajax dialog. It's very simple code.

multiple CActiveDataProviders in one CGridView

Created about a year ago by KonApazHow-tos6 comments – viewed 10,919 times – ( +7 / -1 ) – version 1.1
There is a few cases that you want more of one CActiveDataProvider displayed in one CGrideView How to do that?

How to hide `index` action from URL

Created 2 years ago by rootbearHow-tos2 comments – viewed 10,901 times – ( +3 / -2 ) – version 1.1
Here is my experiment inspired by my own question and others from the forum.
tags: index

How to create a criteria condition for a multiple value text search i.e a "LIKE IN"

Created 8 months ago by tophHow-tos2 comments – viewed 10,871 times – ( -1 ) – version 1.1
This is a shortcut for adding a text search for multiple values i.e.

Using Grunt for deploying client scripts

Created about a year ago by Chris83How-tos8 comments – viewed 10,823 times – ( +10 ) – 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.

Extending an ActiveRecord model

Created about a year ago by BogseyHow-tos3 comments – viewed 10,711 times – ( +2 / -3 ) – version 1.1
Introduction

How to hide index.php on Microsoft Windows Server with IIS7

Created 2 years ago by GiulianoHow-tos2 comments – viewed 10,705 times – ( +8 ) – version 1.1
I've seen lot of people struggling in finding a way to hide the script name when installing their Yii Application. In an Apache environment everything is well documented in this wiki article, but for those who are running their app on a Windows Server machine there are no hints.

i18n All-in-one format and timezone conversions for date, time, timestamp and datetime.

Created about a year ago by Gerhard LiebenbergHow-tos3 comments – viewed 10,688 times – ( +7 / -1 ) – version 1.1
Most of the currently available functions/extensions/behaviors directly or indirectly use timestamps to perform "format" and "timezone" conversions. This creates problems for dates falling outside the timestamp range; and the two forms of conversions must often be done in separate processes. However, by using php's DateTime class (instead of timestamps), we can do both conversions on a single DateTime object (only 2 lines of code) for date, time, timestamp and datetime types - while php takes care of nightmares such as daylight saving times and more importantly, historical changes in timezones and daylight saving times.

YouTube API v2.0 – Browser-based Uploading

Created 2 years ago by VaibhavHow-tos1 comment – viewed 10,542 times – ( +6 ) – version 1.1
Through the YouTube API you can upload files directly to the Youtube server. Youtube currently offers two services 1. Direct Link 2. Browser Based Uploading. In this wiki I will demonstrate how you can quickly set Browser Based Uploading for your Yii application. This is the protocol request that takes place.

Update a part of content using AJAX when select a GridView row

Created 9 months ago by KonApazHow-tos2 comments – viewed 10,441 times – ( +4 ) – version 1.1
Suppose you want to refresh a form or any content when a single row of CGridView is selected