Wiki

Sorted by commentsX
Displaying 1-10 of 467 result(s).

Searching and sorting by related model in CGridView

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

YiiBoilerplate - Setup a professional project structure in seconds

Created 8 months ago by Antonio RamirezOthers49 comments – viewed 21,503 times – ( +40 )
YiiBoilerplate
tags: directory, config

How-To: Create a REST API

Created 2 years ago by jwernerHow-tos38 comments – viewed 104,018 times – ( +86 / -1 )
This article will explain how to create a REST API with the Yii framework.

CJuiDialog for create new model

Created 2 years ago by zaccariaTutorials37 comments – viewed 49,974 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,700 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,274 times – ( +69 )
This page is created to supply short directions and general tips for managing a Yii application in NetBeans IDE.

The directory structure of the Yii project site

Created 2 years ago by qiangOthers28 comments – viewed 66,562 times – ( +74 )
In this article, we describe the directory structure used by yiiframework.com - the official Yii framework website. While this structure may look overly complicated for small projects or may not be optimal in some sense, we believe it is appropriate for medium or large projects in a team development environment. In fact, we have successfully used the similar structure in some other big projects.
tags: directory, config

How to upload a file using a model

Created 4 years ago by qiangTutorials21 comments – viewed 172,348 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

Kickstart development with Yii-App

Created 3 months ago by Chris83How-tos20 comments – viewed 9,624 times – ( +16 )
I recently created a project called Yii-App on GitHub to kickstart my development of smaller Yii applications. The main goal of the project is to provide a ready-to-use application template that includes my bootstrap extension and many other useful extensions. After reading this article you will be able to use this project as a starting point for all of your Yii projects.

Creating a dependent dropdown

Created 4 years ago by dalipTutorials19 comments – viewed 138,337 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