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

Searching and sorting by related model in CGridView

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

Creating a dependent dropdown

Created 6 years ago by dalipTutorials53 comments – viewed 291,826 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 for create new model

Created 4 years ago by zaccariaTutorials53 comments – viewed 89,605 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 3 years ago by c@cbaTutorials36 comments – viewed 51,304 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 in english, and 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 6 years ago by qiangTutorials33 comments – viewed 186,321 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 3 years ago by AsgarothTutorials33 comments – viewed 62,367 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 182,528 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 5 years ago by andy_sTutorials27 comments – viewed 94,089 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 2 years ago by Rajith RTutorials25 comments – viewed 74,722 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.

CJuiDialog and AjaxSubmitButton

Created 5 years ago by tydeas_drTutorials22 comments – viewed 95,756 times – ( +37 / -2 ) – version 1.1
Hello ppl. Even though i have a small experience with yii I though of writing this to help people which want to do something similar.
tags: AJAX