Wiki articles

Showing 1-20 of 822 items.

Searching and sorting by related model in CGridView

Created 12 years ago by Maciej Liżewski, updated 9 years ago by Kostas Apazidis (KonApaz).

Lets say we have two models and relation between them:

77 0
93 followers
Viewed: 273 324 times
Version: 1.1
Category: Tutorials

How-To: Create a REST API

Created 13 years ago by jwerner, updated 9 years ago by Rohit Suthar.

This article will explain how to create a REST API with the Yii framework.

98 2
123 followers
Viewed: 498 242 times
Version: 1.1
Category: How-tos

CJuiDialog to create new model

Created 13 years ago by zaccaria, updated 7 years ago by Maurizio Domba Cerin.

In this tutorial we will learn how to realize a create interface using a dialog.

55 0
64 followers
Viewed: 127 604 times
Version: 1.1
Category: Tutorials

Creating a dependent dropdown

Created 15 years ago by dalip, updated 9 years ago by Paul_Kish.

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.

83 2
92 followers
Viewed: 412 145 times
Version: 1.1
Category: Tutorials

YiiBoilerplate - Setup a professional project structure in seconds

Created 11 years ago by Antonio Ramirez, updated 11 years ago by Antonio Ramirez.

Even though it looks complicated at the beginning, you will find that it is not that hard as it seems once you understand its structure. Yii's project structure wiki obviously inspired a lot of this setup, and you will find that some of the paragraphs here are taken from their wiki.

39 0
81 followers
Viewed: 112 648 times
Version: 1.1
Category: Others

The directory structure of the Yii project site

Created 13 years ago by qiang, updated 11 years ago by Yang He.

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.

77 0
96 followers
Viewed: 245 260 times
Version: 1.1
Category: Others

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

Created 12 years ago by c@cba, updated 12 years ago by c@cba.

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...

28 0
42 followers
Viewed: 75 877 times
Version: 1.1
Category: Tutorials

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

Created 15 years ago by qiang, updated 11 years ago by Yang He.

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:

88 0
79 followers
Viewed: 332 095 times
Version: 1.1
Category: Tutorials

Using filters with CGridView and CArrayDataProvider

Created 12 years ago by marcovtwout, updated 10 years ago by yugene.

Using filters on CGridView with CActiveDataProvider is easy, but with CArrayDataProvider it is a bit tricky.

19 0
29 followers
Viewed: 92 834 times
Version: 1.1
Category: How-tos

XUpload Workflow

Created 11 years ago by Asgaroth, updated 11 years ago by Asgaroth.

This wiki describes a more complex workflow using the XUpload widget

28 0
42 followers
Viewed: 95 088 times
Version: 1.1
Category: Tutorials

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

Created 14 years ago by andy_s, updated 11 years ago by kiran sharma.

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.

26 0
44 followers
Viewed: 135 501 times
Version: 1.1
Category: Tutorials
Tags:

NetBeans IDE and Yii projects

Created 13 years ago by marcovtwout, updated 9 years ago by marcovtwout.

This page is created to supply short directions and general tips for managing a Yii application in NetBeans IDE.

65 0
66 followers
Viewed: 248 704 times
Version: 1.1
Category: Tutorials

(draft) Understanding Yii 3

Created 5 years ago by Mehdi Achour, updated a year ago by samdark.

This document is intended for an audience already familiar with Yii2. It's meant to bring together all information related to Yii 3 in one place to make it easier to get on track.

39 0
17 followers
Viewed: 190 175 times
Version: 3.0
Category: Tutorials
Tags: yii3

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

Created 10 years ago by Kartik V, updated 5 years ago by softark.

This wiki explains how to add calculated fields into your Yii Framework 2.0 gridview with filtering and sorting.

13 3
64 followers
Viewed: 249 757 times
Version: 2.0
Category: Tutorials

Installing Yii Users and Rights to Newly Created Yii app

Created 11 years ago by Rajith R, updated 10 years ago by Rajith R.

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.

11 1
40 followers
Viewed: 107 865 times
Version: 1.1
Category: Tutorials

Render Form in popup via AJAX (Create and Update) with ajax validation & Also load any page via ajax Yii 2.0 (2.3)

Created 9 years ago by skworden, updated 6 years ago by Yii3.

There are a few issues with the other solutions I originally used that I found from other wikis. I address the issues I had in this much simpler and shorter way. I am also going to explain what is going into way more detail than others to help people understand what's going on.

21 0
28 followers
Viewed: 245 989 times
Version: 2.0
Category: How-tos

How to avoid multiple Ajax Request

Created 12 years ago by nickcv, updated 12 years ago by nickcv.

CHtml::ajaxLink(), CHtml::ajaxSubmitButton() and similar methods are great, but if they are located inside a portion of the page that is already loaded via ajax something bad will happen, something you may even not notice if you are not using tools like firebugs...

17 0
27 followers
Viewed: 66 211 times
Version: 1.1
Category: How-tos

Displaying, Sorting and Filtering Model Relations on a GridView

Created 9 years ago by Antonio Ramirez, updated 9 years ago by Antonio Ramirez.

One of the things you will find tricky to implement is the the sorting and filtering of a GridView's column that displays related model data.

48 0
37 followers
Viewed: 326 308 times
Version: 2.0
Category: How-tos

Kickstart development with Yii-App

Created 11 years ago by Chris83, updated 11 years ago by Chris83.

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...

14 0
40 followers
Viewed: 40 870 times
Version: 1.1
Category: How-tos

Integrating Wordpress and Yii: still another approach, using Yii as the router/controller

Created 12 years ago by acorncom, updated 10 years ago by acorncom.

When you're finished following this article, you'll have a website that integrates WordPress and Yii routes in under one path. For example, you can setup /widgets and /customers to point to Yii controllers and /about-us, /contact-us, /blog/* and /faq pointing to WordPress pages.

19 0
24 followers
Viewed: 85 354 times
Version: 1.1
Category: How-tos