Wiki

Articles in category "tutorials", sorted by commentsX
Displaying 1-10 of 249 result(s).

Searching and sorting by related model in CGridView

Created 4 years ago by Maciej Li┼╝ewskiTutorials86 comments – viewed 179,570 times – ( +126 ) – version 1.1
Lets say we have two models and relation between them:

Creating a dependent dropdown

Created 7 years ago by dalipTutorials53 comments – viewed 312,055 times – ( +111 / -3 ) – version 1.1
Often you'll need a form with two dropdowns, and one dropdown's values will be dependent on the value of the other dropdown. Using Yii's built-in AJAX functionality you can create such a dropdown.

CJuiDialog to create new model

Created 5 years ago by zaccariaTutorials53 comments – viewed 93,374 times – ( +68 ) – version 1.1
In this tutorial we will learn how to realize a create interface using a dialog.

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

Created 4 years ago by c@cbaTutorials37 comments – viewed 55,556 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 use a single form to collect data for two or more models?

Created 7 years ago by qiangTutorials33 comments – viewed 200,989 times – ( +118 / -1 ) – version 1.1
Assume we want to use a single HTML form to collect input for both model A and model B, and we want to display input errors (if any) in the same error summary box. We can define the following action code:

XUpload Workflow

Created 4 years ago by AsgarothTutorials33 comments – viewed 67,946 times – ( +34 ) – version 1.1
This wiki describes a more complex workflow using the XUpload widget

NetBeans IDE and Yii projects

Created 5 years ago by marcovtwoutTutorials28 comments – viewed 190,469 times – ( +76 ) – version 1.1
This page is created to supply short directions and general tips for managing a Yii application in NetBeans IDE.

Organize directories for applications with front-end and back-end using WebApplicationEnd behavior

Created 6 years ago by andy_sTutorials27 comments – viewed 101,056 times – ( +35 ) – version 1.1
Previously there was described a way to build an application with front-end and back-end. I would like to continue this theme and suggest another way to organize directories using WebApplicationEnd behavior.

Installing Yii Users and Rights to Newly Created Yii app

Created 3 years ago by Rajith RTutorials27 comments – viewed 81,192 times – ( +23 / -10 ) – version 1.1
After creating an yii app . we need to implement permission, Authentication and Authorization .so the best way is to use the Yii users and Rights modules.

Filter & Sort by calculated/related fields in GridView Yii 2.0

Created 2 years ago by Kartik VTutorials23 comments – viewed 102,919 times – ( +56 / -4 ) – version 2.0
This wiki explains how to add calculated fields into your Yii Framework 2.0 gridview with filtering and sorting.