Wiki

Sorted by viewsX
Displaying 331-340 of 733 result(s).

Using jQuery UI 1.8.10 themes with Yii 1.1.6

Created 4 years ago by a110yTips7 comments – viewed 15,472 times – ( +2 ) – version 1.1
When using the latest stable jQuery UI themes (1.8.10) with Yii 1.1.6 (which uses 1.8.6) the widgets don't appear (they're invisible but they're there). In order to make them visible you need to change the following line:

How to use the official Yii installer for Composer (**DEPRECATED**)

Created about a year ago by br0skHow-tos9 comments – viewed 15,349 times – ( +3 ) – version 1.1
This wiki shall be considered deprecated since the Yii installer for composer has been discontinued.

Cron Jobs in Yii

Created about a year ago by aarondfrancisHow-tos1 comment – viewed 15,181 times – ( +4 )
I've gotten Yii running cron jobs, and wanted to explain briefly how I did it.

Rendering Views and Updating them with Ajax

Created about a year ago by Manish GuptaTips4 comments – viewed 15,159 times – ( +2 )
I wanted to implement a widget that could refresh itself through Ajax without refreshing the whole page. CGridView and CListView are excellent examples of such widgets.

The MrFisk IRC Bot

Created 2 years ago by rAWTAZOthers0 comments – viewed 15,134 times – ( +5 ) – version 1.1
MrFisk is a sleek little bot hanging out in the official #yii IRC channel on freenode, meant to serve Yii users with documentation lookups and other things. This document intends to provide a summary of what MrFisk can do for you and how to use his fin^H^Heatures.
tags: MrFisk, YiiBot, IRC, bot

Force a User to Change Their Password (ChangePasswordFilter)

Created 3 years ago by waterloomattTutorials2 comments – viewed 15,127 times – ( +16 / -2 ) – version 1.1
Sometimes you need to force a user to change their password after x number of days. This article describes how to implement this using a filter, ChangePasswordFilter.

Checking for "expired" sessions/logins on the client side

Created about a year ago by le_topHow-tos0 comments – viewed 15,103 times – ( +5 ) – version 1.1
Getting "Expired token" errors ? Here is a solution to avoid invalid CSRF on POST or ajax requests, or user identity changes.

Image resize on the fly

Created 2 years ago by TpoxaHow-tos4 comments – viewed 15,030 times – ( +4 ) – version 1.1
For example have folder with image resources which are public accessible
tags: yii, image-resize

pass variables or content block from view file to layout file

Created 2 years ago by yiqing95How-tos0 comments – viewed 14,921 times – ( +2 ) – version 1.1
If you use yiic to generate webApplication there will be a layout folder under the protected/views/, and the Controller class under protected/components which will use by default these layouts files.

Save and Display Date/Time Fields in different formats in Yii2

Created 9 months ago by Kartik VHow-tos10 comments – viewed 14,845 times – ( +32 ) – version 2.0
You would find having such a need in most Yii Projects. Your database needs a specific format to store date fields, while you may want to display it in different formats to the users on forms and other views.