Wiki

Sorted by ratingX
Displaying 41-50 of 715 result(s).

Extension Development (beginner)

Created 10 months ago by sefburhanTutorials2 comments – viewed 15,841 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 10 months ago by sefburhanTutorials0 comments – viewed 3,215 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.

Configuring different sessions for backend and frontend in Yii advanced app

Created 6 months ago by Kartik VHow-tos1 comment – viewed 4,155 times – ( +33 ) – version 2.0
After you have setup your Yii2 advanced application, you now have setup your user authentication for both frontend and backend. However, if you have first logged into frontend, and try to access backend from the same client machine, you see no login screen, but find yourself automatically logged in.

Key web server settings after installing a fresh Yii 2 basic or advanced app

Created 6 months ago by Kartik VTips2 comments – viewed 3,802 times – ( +33 ) – version 2.0
So, you have installed a brand new Yii 2 app (basic) or (advanced). Here are a few tips for Apache web server users to get things running more secure and better with your yii2 app.

Create your own Validation Rule

Created 3 years ago by nickcvHow-tos12 comments – viewed 130,184 times – ( +75 / -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.

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

Created 2 years ago by c@cbaTutorials36 comments – viewed 42,322 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.

Single sign on across multiple subdomains

Created 3 years ago by ianarĂ©How-tos9 comments – viewed 30,226 times – ( +31 ) – version 1.1
This had me stumped for a while so I figured it would be nice to share here to avoid others the grief.

Creating a jQueryUI Sortable CGridView

Created 3 years ago by blindMoeHow-tos22 comments – viewed 31,087 times – ( +45 / -1 ) – version 1.1
I have had to do this a couple of times now so I figured I would share it with the community. I am going to keep this short because I really hope that you are familiar with jQueryUI's Sortable class before starting this tutorial.

How to automate timestamps in ActiveRecord models

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

Understanding Scenarios

Created 3 years ago by Luke JurgsTutorials11 comments – viewed 81,805 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.