Wiki

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

Extension Development (beginner)

Created 9 months ago by sefburhanTutorials2 comments – viewed 15,597 times – ( +33 ) – 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 9 months ago by sefburhanTutorials0 comments – viewed 3,077 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.

How to automate timestamps in ActiveRecord models

Created 5 years ago by dalipTutorials8 comments – viewed 104,641 times – ( +30 ) – 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 2 years ago by c@cbaTutorials36 comments – viewed 41,502 times – ( +30 ) – 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.

Understanding Scenarios

Created 3 years ago by Luke JurgsTutorials11 comments – viewed 80,009 times – ( +29 ) – 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 2 years ago by schmunkTutorials2 comments – viewed 42,219 times – ( +29 ) – version 1.1
Creating Yii applications with composer

Understanding Autoloading, Helper Classes and Helper Functions

Created 3 years ago by Steve FriedlTutorials4 comments – viewed 68,687 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.

Drills : Search by a HAS_MANY relation

Created about a year ago by softarkTutorials12 comments – viewed 26,916 times – ( +29 ) – version 1.1
Sometimes we get lost trying to search by a HAS_MANY relation using CActiveRecord or CActiveDataProvider. This article is a series of drills that try to describe the practical techniques of searching by a HAS_MANY relation.

Relational data fields display and edit with the yii2-detail-view extension

Created 5 months ago by Kartik VTutorials0 comments – viewed 3,055 times – ( +29 ) – version 2.0
If you have read this wiki you would be aware of the yii2-detail-view extension and how it offers you an easy way to EDIT and VIEW your model data, toggle these modes, and other features. You can read the extension documentation and/or view a demo of this extension, to understand usage.

Yii for beginners 2

Created about a year ago by rackyczTutorials2 comments – viewed 36,476 times – ( +29 ) – version 1.1
Hi :-) Is that you again? Welcome !! :-)