Wiki

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

Searching and sorting by related model in CGridView

Created 2 years ago by redguyTutorials75 comments – viewed 124,801 times – ( +112 ) – version 1.1
Lets say we have two models and relation between them:

Creating a dependent dropdown

Created 5 years ago by dalipTutorials50 comments – viewed 249,211 times – ( +108 / -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 3 years ago by zaccariaTutorials44 comments – viewed 77,472 times – ( +63 ) – 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 2 years ago by c@cbaTutorials35 comments – viewed 40,355 times – ( +29 ) – 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.

XUpload Workflow

Created 2 years ago by AsgarothTutorials32 comments – viewed 47,698 times – ( +34 ) – version 1.1
This wiki describes a more complex workflow using the XUpload widget

How to use a single form to collect data for two or more models?

Created 5 years ago by qiangTutorials30 comments – viewed 146,611 times – ( +111 / -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:

NetBeans IDE and Yii projects

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

How to upload a file using a model

Created 5 years ago by qiangTutorials27 comments – viewed 313,396 times – ( +83 / -6 ) – version 1.1
First declare an attribute to store the file name in the model class (either a form model or an active record model). Also declare a file validation rule for this attribute to ensure a file is uploaded with specific extension name.
tags: File upload

Installing Yii Users and Rights to Newly Created Yii app

Created about a year ago by Rajith RTutorials25 comments – viewed 57,325 times – ( +21 / -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.

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

Created 4 years ago by andy_sTutorials22 comments – viewed 77,099 times – ( +33 ) – 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.