Wiki articles

Showing 1-20 of 651 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 327 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 247 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 146 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 264 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 878 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 098 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 835 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 706 times
Version: 1.1
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 867 times
Version: 1.1
Category: Tutorials

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 213 times
Version: 1.1
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 871 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 356 times
Version: 1.1
Category: How-tos

Creating a jQueryUI Sortable CGridView

Created 12 years ago by blindMoe, updated 11 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.

36 0
54 followers
Viewed: 52 208 times
Version: 1.1
Category: How-tos

Activate captcha after unsuccessful login attempts

Created 10 years ago by Kostas Apazidis (KonApaz), updated 9 years ago by Rohit Suthar.

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

4 1
15 followers
Viewed: 38 047 times
Version: 1.1
Category: How-tos

How to write secure Yii1 applications

Created 12 years ago by François Gannaz, updated 2 years ago by François Gannaz.
  • Validate the user input (see below for details).
  • Protect (escape) your application output according to context (see below for a few output types, mostly HTML and SQL).
  • Test your application in debug mode.
    Set the constant YII_DEBUG to true (by default, it is defined in index.php) and put alongside error_reporting(E_ALL);. Then errors and warnings will stop the execution an...
80 0
114 followers
Viewed: 309 923 times
Version: 1.1
Category: How-tos

CJuiDialog and AjaxSubmitButton

Created 13 years ago by tydeas_dr, updated 12 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: 126 309 times
Version: 1.1
Category: Tutorials
Tags: AJAX