Wiki articles

Showing 1-20 of 650 items.

Searching and sorting by related model in CGridView

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

Lets say we have two models and relation between them:

76 0
96 followers
Viewed: 219 646 times
Version: 1.1
Category: Tutorials

How-To: Create a REST API

Created 8 years ago by jwerner, updated 4 years ago by Rohit Suthar.

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

97 2
126 followers
Viewed: 405 932 times
Version: 1.1
Category: How-tos

CJuiDialog to create new model

Created 8 years ago by zaccaria, updated 3 years ago by Maurizio Domba Cerin.

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

55 0
65 followers
Viewed: 106 134 times
Version: 1.1
Category: Tutorials

Creating a dependent dropdown

Created 10 years ago by dalip, updated 4 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: 355 770 times
Version: 1.1
Category: Tutorials

YiiBoilerplate - Setup a professional project structure in seconds

Created 6 years ago by Antonio Ramirez, updated 6 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
82 followers
Viewed: 65 742 times
Version: 1.1
Category: Others

The directory structure of the Yii project site

Created 8 years ago by qiang, updated 6 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.

76 0
97 followers
Viewed: 206 743 times
Version: 1.1
Category: Others

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

Created 7 years ago by c@cba, updated 7 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: 65 493 times
Version: 1.1
Category: Tutorials

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

Created 10 years ago by qiang, updated 7 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:

87 0
78 followers
Viewed: 233 997 times
Version: 1.1
Category: Tutorials

XUpload Workflow

Created 7 years ago by Asgaroth, updated 6 years ago by Asgaroth.

This wiki describes a more complex workflow using the XUpload widget

28 0
42 followers
Viewed: 82 388 times
Version: 1.1
Category: Tutorials

Using filters with CGridView and CArrayDataProvider

Created 7 years ago by marcovtwout, updated 5 years ago by yugene.

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

18 0
29 followers
Viewed: 80 612 times
Version: 1.1
Category: How-tos

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

Created 9 years ago by andy_s, updated 7 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: 115 961 times
Version: 1.1
Category: Tutorials
Tags:

NetBeans IDE and Yii projects

Created 8 years ago by marcovtwout, updated 4 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: 215 067 times
Version: 1.1
Category: Tutorials

Installing Yii Users and Rights to Newly Created Yii app

Created 6 years ago by Rajith R, updated 5 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.

10 1
40 followers
Viewed: 95 844 times
Version: 1.1
Category: Tutorials

How to avoid multiple Ajax Request

Created 8 years ago by nickcv, updated 8 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: 59 616 times
Version: 1.1
Category: How-tos

Kickstart development with Yii-App

Created 6 years ago by Chris83, updated 6 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
41 followers
Viewed: 35 578 times
Version: 1.1
Category: How-tos

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

Created 7 years ago by acorncom, updated 5 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
25 followers
Viewed: 69 977 times
Version: 1.1
Category: How-tos

Creating a jQueryUI Sortable CGridView

Created 7 years ago by blindMoe, updated 6 years ago by rAWTAZ.

I have had to do this a couple of times now so I figured I would share it with the community. I am going to keep this short because I really hope that you are familiar with jQueryUI's Sortable class before starting this tutorial.

35 0
54 followers
Viewed: 46 404 times
Version: 1.1
Category: How-tos

Activate captcha after unsuccessful login attempts

Created 6 years ago by Kostas Apazidis (KonApaz), updated 5 years ago by Rohit Suthar.

Like gmail, if you have tree or more unsuccessful login attemps a captcha appears

4 1
16 followers
Viewed: 27 746 times
Version: 1.1
Category: How-tos

CJuiDialog and AjaxSubmitButton

Created 9 years ago by tydeas_dr, updated 7 years ago by phazei.

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.

33 1
45 followers
Viewed: 109 598 times
Version: 1.1
Category: Tutorials
Tags: AJAX

How to upload image(photo), and path entry in database with update functionality

Created 7 years ago by kiran sharma, updated 5 years ago by Shahcheraghean.

I saw many posts that community newbie is confuse in image/photo upload with random name. so I post this topic covering all useful things regarding to image/photo upload(not covering image attribute related functionality)

14 0
38 followers
Viewed: 191 187 times
Version: 1.1
Category: Tips