Wiki

Articles in category "tutorials", sorted by ratingX
Displaying 21-30 of 250 result(s).

Extension Development (beginner)

Created 2 years ago by sefburhanTutorials2 comments – viewed 19,005 times – ( +34 ) – version 1.1
To extend the functionality of you web application relative to your requirements you are supposed to use existing yii core libraries or use external libraries. There are some steps to ensure security, uniqueness, modularity, performance and to avoid rework in future.

Tags manipulation using Select2 in single field

Created 2 years ago by sefburhanTutorials0 comments – viewed 5,365 times – ( +33 ) – version 1.1
Sometime its very important to perform many actions/operation with limited time frame for friendly use, select2 provides a lot of such functionality , I just extend it tags functionality to provide a quick use for developer to save time, as I spent much time on it.

Drills : Search by a HAS_MANY relation in Yii 1.1

Created 3 years ago by softarkTutorials13 comments – viewed 44,513 times – ( +33 ) – version 1.1
Sometimes we get lost trying to search by a HAS_MANY relation using CActiveRecord or CActiveDataProvider in Yii 1.1. This article is a series of drills that try to describe the practical techniques of searching by a HAS_MANY relation.

How to automate timestamps in ActiveRecord models

Created 7 years ago by dalipTutorials9 comments – viewed 141,096 times – ( +32 ) – version 1.1
There are many ways to automate the setting of timestamps in yii ActiveRecord models. Three are presented here:

SEO-conform Multilingual URLs + Language Selector Widget (i18n)

Created 4 years ago by c@cbaTutorials37 comments – viewed 56,383 times – ( +32 ) – version 1.1
You have a multilingual application, and you want the URL of a page to be different for different languages, to account for SEO. The URL for the contact page for example should look like http://something.com/en/contact in english, and http://something.com/de/contact in german. This tutorial describes how to make it happen. Note that currently selected language is always a part of the URL, and thus available to the application through $_GET. You don't have to use sessions variables to keep track of the language if you don't want to.

Yii for beginners 2

Created 3 years ago by rackyczTutorials2 comments – viewed 51,753 times – ( +32 ) – version 1.1
Hi :-) Is that you again? Welcome !! :-)

How to add more information to Yii::app()->user

Created 7 years ago by qiangTutorials2 comments – viewed 162,646 times – ( +31 ) – version 1.1
By default, the expression Yii::app()->user returns a CWebUser application component which represents the information that are closely related with the current user. Some information can be persistent throughout the current user session. For example, CWebUser already comes with a name property that stores the username of the current user.

Understanding Scenarios

Created 4 years ago by Luke JurgsTutorials12 comments – viewed 117,204 times – ( +31 ) – version 1.1
Scenarios are an extremely useful tool for separating validation tasks on any class you use derived from CModel. In this tutorial we will use CActiveRecord.

Creating Yii applications with composer

Created 4 years ago by schmunkTutorials2 comments – viewed 72,643 times – ( +30 ) – version 1.1
Creating Yii applications with composer

Understanding Autoloading, Helper Classes and Helper Functions

Created 5 years ago by Steve FriedlTutorials4 comments – viewed 92,776 times – ( +29 ) – version 1.1
Many Yii users ask how to create helper classes and functions, and though there are numerous approaches spread out among the forum and wiki articles, this Tutorial tries to bring it all together in one place.