Wiki

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

Extension Development (beginner)

Created 9 months ago by sefburhanTutorials2 comments – viewed 15,554 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,047 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.

Create your own Validation Rule

Created 3 years ago by nickcvHow-tos11 comments – viewed 126,707 times – ( +74 / -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.

Single sign on across multiple subdomains

Created 3 years ago by ianarĂ©How-tos9 comments – viewed 29,426 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.

Configuring different sessions for backend and frontend in Yii advanced app

Created 5 months ago by Kartik VHow-tos0 comments – viewed 3,203 times – ( +31 ) – 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 5 months ago by Kartik VTips2 comments – viewed 2,956 times – ( +31 ) – 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.

Creating a jQueryUI Sortable CGridView

Created 3 years ago by blindMoeHow-tos22 comments – viewed 30,509 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 104,129 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@cbaTutorials35 comments – viewed 41,312 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.

Searching and Sorting by Count of Related Items in CGridView

Created 2 years ago by softarkHow-tos13 comments – viewed 30,425 times – ( +29 ) – version 1.1
Let's say we have two models and relation between them: