Wiki

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

Tags manipulation using Select2 in single field

Created 11 months ago by sefburhanTutorials0 comments – viewed 3,342 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.

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

Created 3 years ago by c@cbaTutorials36 comments – viewed 43,398 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.

How to automate timestamps in ActiveRecord models

Created 5 years ago by dalipTutorials8 comments – viewed 109,352 times – ( +30 ) – version 1.1
There are many ways to automate the setting of timestamps in yii ActiveRecord models. Three are presented here:

Drills : Search by a HAS_MANY relation in Yii 1.1

Created 2 years ago by softarkTutorials12 comments – viewed 28,883 times – ( +30 ) – 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.

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

Created 7 months ago by Kartik VTutorials0 comments – viewed 4,747 times – ( +30 ) – 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.

Understanding Scenarios

Created 3 years ago by Luke JurgsTutorials11 comments – viewed 83,762 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 44,900 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 71,363 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.

Editing, Deleting, and Viewing model data with the yii2-detail-view extension

Created 7 months ago by Kartik VTutorials0 comments – viewed 6,377 times – ( +29 ) – version 2.0
The yii2-detail-view extension offers you an easy way to EDIT and VIEW your model data, toggle these modes, and adds 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 38,250 times – ( +29 ) – version 1.1
Hi :-) Is that you again? Welcome !! :-)