Wiki

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

Searching and sorting by related model in CGridView

Created about a year ago by redguyTutorials49 comments – viewed 59,299 times – ( +77 )
Lets say we have two models and relation between them:

CJuiDialog for create new model

Created 2 years ago by zaccariaTutorials37 comments – viewed 50,083 times – ( +55 )
In this tutorial we will learn how to realize a create interface using a dialog.

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

Created about a year ago by c@cbaTutorials35 comments – viewed 19,754 times – ( +26 )
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.

NetBeans IDE and Yii projects

Created 2 years ago by marcovtwoutTutorials28 comments – viewed 121,485 times – ( +69 )
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 4 years ago by qiangTutorials21 comments – viewed 172,915 times – ( +68 / -6 )
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

Creating a dependent dropdown

Created 4 years ago by dalipTutorials19 comments – viewed 138,723 times – ( +84 / -2 )
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.
tags: AJAX

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

Created 3 years ago by andy_sTutorials18 comments – viewed 43,037 times – ( +25 )
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.

CJuiDialog and AjaxSubmitButton

Created 3 years ago by tydeas_drTutorials18 comments – viewed 59,948 times – ( +32 / -2 )
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

XUpload Workflow

Created 10 months ago by AsgarothTutorials18 comments – viewed 20,232 times – ( +27 )
This wiki describes a more complex workflow using the XUpload widget