Wiki

Sorted by commentsX
Displaying 71-80 of 704 result(s).

Add information to Yii::app()->user by extending CWebUser

Created 4 years ago by atrandafirTutorials11 comments – viewed 98,738 times – ( +33 ) – version 1.1
This little tutorial explains a way how you can retrieve more parameters from Yii::app()->user by adding a component that extends CWebUser and retrieves the user information from database table named User.

Understanding "Assets"

Created 3 years ago by Steve FriedlTutorials11 comments – viewed 114,782 times – ( +57 ) – version 1.1
Many newcomers to Yii ask about the assets/ directory found under the webroot, and this article means to explain why it's there and how to work with it.

URL management for Websites with secure and nonsecure pages

Created 2 years ago by qiangHow-tos11 comments – viewed 20,104 times – ( +27 ) – version 1.1
In this article, I will describe how to manage URLs for a Website that has both secure and nonsecure content.
tags: URL

Understanding "Safe" Validation Rules

Created 3 years ago by Steve FriedlFAQs11 comments – viewed 74,775 times – ( +90 / -1 ) – version 1.1
A common source of confusion among new Yii users is how the 'safe' validator works, how it works with other validators, and why it's necessary in the first place. This article means to clear up this confusion, as well as explain the notion of Massive Assignment.

Create your own Validation Rule

Created 3 years ago by nickcvHow-tos11 comments – viewed 126,736 times – ( +74 / -3 ) – version 1.1
Some times the core validation rules provided by Yii won't satisfy all your needs, so you'll need to create your very own validation rule.

CKEditor Integration (includes steps for file uploads) - Step by Step

Created about a year ago by shulmeHow-tos11 comments – viewed 32,560 times – ( +24 ) – version 1.1
Hey guys, I'm hoping other people will find this helpful. Today I went through the process of adding CKEditor to one of my projects, and then integrating KCFinder as the image uploader. It will be used in a CActiveForm, without the use of any crazy weird widgets. All paths are relative, using Yii functions, so this will work no matter where you install. Here it is:

jQuery UI Datepicker

Created about a year ago by softarkHow-tos11 comments – viewed 49,333 times – ( +12 ) – version 1.1
We all love the convenient gadget, namely jQuery UI Datepicker as an input element for date. Yii supports it as CJuiDatePicker. Let's see how to use it.

Caching the config main.php

Created 3 years ago by dckurushinTutorials11 comments – viewed 11,656 times – ( +4 / -2 ) – version 1.1
The config long array included every time, and it's not cached at all!

Special $variables in CGridView and CListView

Created 3 years ago by Steve FriedlTips11 comments – viewed 44,103 times – ( +26 / -1 ) – version 1.1
The popular CListView and CGridView widgets each take a data provider and iterate over each data object produced, calling the user's code to render each row one at a time, and most are familiar with the use of the $data variable to represent the current model object or array.

How to set up Unicode

Created 5 years ago by MikeHow-tos10 comments – viewed 63,439 times – ( +19 ) – version 1.1
To fix issues with display of special language characters once and for all there's a solution: use Unicode UTF-8 everywhere. If everything is set up to use Unicode, you can use mostly every language in your application.
tags: i18n, unicode