Wiki

Sorted by ratingX
Displaying 81-90 of 750 result(s).

How to learn Yii?!

Created 3 years ago by yJeroenTutorials6 comments – viewed 71,665 times – ( +25 ) – version all
Here is a step by step To-Do list for Yii beginners. The list is an advice of what tutorials and documentation you can walk through to get a full understanding of the Yii Framework. These can be a help to learn Yii.

How to upload a file using a model

Created 6 years ago by qiangTutorials6 comments – viewed 358,557 times – ( +85 / -6 ) – version 1.1
First declare an attribute to store the file name in the model class (either a form model or an active record model). Also declare a file validation rule for this attribute to ensure a file is uploaded with specific extension name.
tags: File upload

How to implement multiple page layouts in an application

Created 6 years ago by qiangTutorials2 comments – viewed 88,609 times – ( +24 ) – version 1.1
In this tutorial, we describe how to implement multiple layouts for action views in an application. As an example, we assume that the pages in our application will use three different layouts:
tags: layout

Using CJuiDatePicker for CGridView filter

Created 3 years ago by softarkHow-tos14 comments – viewed 39,128 times – ( +24 ) – version 1.1
We can use a CJuiDatePicker for a CGridView inline filter.

Keeping a running total in a CGridView

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

Avoiding rendering entire page when using CGridView and CListView via AJAX

Created 4 years ago by xrxHow-tos17 comments – viewed 35,349 times – ( +24 ) – version 1.1
Since I used CGridView for a first time, I didn't like how it handled operations like sorting, filtering, changing page and etc using AJAX.

Use crypt() for password storage

Created 2 years ago by fsbTutorials16 comments – viewed 70,180 times – ( +24 ) – version 1.1
Update: This wiki has been rewritten to be in line with Yii 1.1.14. Since many of the detailed complexities are now handled by Yii, the article focuses on how the crypt() built-in function works and why it's important to use it correctly.

PHPStorm & NetBeans autocomplete problem

Created 2 years ago by StagelineTips2 comments – viewed 9,697 times – ( +24 ) – version 1.1
The problem: If you type Yii::app()->user<ctrl+space> code completion didn't work. This solve it.

CSS Naming Conventions

Created 4 years ago by qiangTutorials4 comments – viewed 28,697 times – ( +35 / -1 ) – version 1.1
In this article, we introduce a set of CSS naming conventions that we have applied in several big projects and achieved success. The goal of these naming conventions is to eliminate the possibility of naming conflicts, facilitate debugging and maintenance, and to simplify the naming process.

Setting and maintaining the language in Application (i18n)

Created 6 years ago by olafureTutorials12 comments – viewed 87,000 times – ( +23 ) – version 1.1
As seen in this post, Yii doesn't enforce how language is set and maintained within the session.
tags: i18n, translation