Wiki articles

Showing 201-220 of 651 items.

How to use the official Yii installer for Composer (**DEPRECATED**)

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

This wiki shall be considered deprecated since the Yii installer for composer has been discontinued.

3 0
10 followers
Viewed: 55 892 times
Version: 1.1
Category: How-tos

Dynamic Sidebar using CClipWidget

Created 14 years ago by Sheldmandu, updated 11 years ago by Cozumel.

There are a couple of ways to achieve this, but the first is preferred.

18 0
18 followers
Viewed: 55 231 times
Version: 1.1
Category: How-tos

How to use YiiBooster TbFileUpload widget

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

I normally create a files folder and I allocate it within my www one, that is where I keep my css, js, images files. So, even though you can place it where ever you wish and for the sake of the example, I will use the files folder name.

7 0
19 followers
Viewed: 55 033 times
Version: 1.1
Category: How-tos

Twitter Bootstrap style Breadcrumbs

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

will generate twitter bootstrap styled breadcrumb code:

3 1
4 followers
Viewed: 54 720 times
Version: 1.1
Category: How-tos

Single table inheritance

Created 14 years ago by samdark, updated 14 years ago by samdark.

Relational databases do not support inheritance so if we need to represent it, we have to somehow store meta info while keeping performance by minimizing JOINs. One way to solve this problem is using single table inheritance. All fields for the whole class tree are stored in a single table. Class name is stored in the type field...

34 0
35 followers
Viewed: 54 635 times
Version: 1.1
Category: How-tos

When to use Active Record

Created 6 years ago by samdark, updated 5 years ago by samdark.

When to use Active Record is a common question among developers, Yii and overall.

13 0
4 followers
Viewed: 54 109 times
Version: all
Category: FAQs

Creating a jQueryUI Sortable CGridView

Created 13 years ago by blindMoe, updated 12 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: 53 888 times
Version: 1.1
Category: How-tos

File uploads in CForm (Form builder)

Created 13 years ago by Luke Jurgs, updated 13 years ago by Luke Jurgs.

While there is a reasonable amount of documentation regarding CForm (form builder) and file uploads seperately, there really is not any coverage of both in combination.

9 0
10 followers
Viewed: 53 791 times
Version: 1.1
Category: How-tos

Custom Login Error Messages

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

The Yii Framework is very powerful and it provides a lot of functionality right from the pre-built webapp. One of the nice things that is already established for you as a developer is the Login authentication. While the default configuration simply sets it up to run against an array of hard coded usernames and passwords, the [Yii Blog Tutorial](http://www.yiiframework.com/doc/blog/1.1/en/prototype...

6 0
8 followers
Viewed: 53 653 times
Version: 1.1
Category: Tutorials

How to create/save more Model inputs and make them repeatable with jQuery

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

This is the first real problem that I encountered using Yii, trying to make a Model input repeatable in the form, validate and save them.

11 0
16 followers
Viewed: 53 615 times
Version: 1.1
Category: Tutorials
Tags:

Drop down list with enum values for column of type ENUM >+> incorporate into giix

Created 13 years ago by c@cba, updated 11 years ago by nsanden.

Let's say our table 'mug' has a column named 'color' of the type ENUM('red','green','blue').
We want to replace the textfield for the attribute color in the create and update forms of a 'mug' with a drop down list, which has the enum values as options.
The main code was contributed by zaccaria in the forum (see [this post](...

10 0
11 followers
Viewed: 53 413 times
Version: 1.1
Category: How-tos

Avoiding rendering entire page when using CGridView and CListView via AJAX

Created 14 years ago by xrx, updated 13 years ago by xrx.

Since I used CGridView for a first time, I didn't like how it handled operations like sorting, filtering, changing page and etc using AJAX.

23 0
29 followers
Viewed: 53 138 times
Version: 1.1
Category: How-tos

Where to implement knowledge about the addresses of the controller?

Created 11 years ago by Petr.Grishin, updated 11 years ago by Petr.Grishin.

Knowledge is necessary to determine the address of the controller in a single layer system. This allows you to quickly search and painlessly produce refactoring controllers and their addresses.

1 0
2 followers
Viewed: 53 123 times
Version: 1.1
Category: Tutorials

Putting Function To Be Called In View

Created 14 years ago by junxiong, updated 14 years ago by junxiong.

Sometimes we need some complicated view to be displayed (such as generating complicated table). Most people suggest that in MVC the View must be as simple as possible (don't have too much loops, etc). So what we have to do is to hide away the complex code by putting it at somewhere else. The following are few places options to keep the function:

5 1
5 followers
Viewed: 53 103 times
Version: 1.1
Category: Tips
Tags: render, view

simple CSV export

Created 12 years ago by bluyell, updated 12 years ago by bluyell.
2 0
13 followers
Viewed: 53 003 times
Version: 1.1
Category: How-tos
Tags: csv, excel, export

1:n relations sometimes require CDbCriteria.together

Created 13 years ago by fsb, updated 11 years ago by fsb.

There are situations in which Active Record will generate nonsense queries from what a nieve Yii user might think is reasonable code. One such situation is a CActiveDataProvider using CDbCriteria to get data from parent and 1:n child table with a condition on the child table.

15 0
12 followers
Viewed: 52 868 times
Version: 1.1
Category: Tips

Integrating HybridAuth directly into Yii without an extension

Created 12 years ago by biz dev, updated 12 years ago by biz dev.

This article tries to explain the steps required in integrating the HybridAuth into Yii directly, without using an extension.

10 0
15 followers
Viewed: 52 721 times
Version: 1.1
Category: How-tos

A very easy way to setup yiic on WAMP server (without extra windows settings)

Created 11 years ago by Kostas Apazidis (KonApaz), updated 10 years ago by Kostas Apazidis (KonApaz).

Assuming that you have already install the wampserver on your windows.

3 1
4 followers
Viewed: 52 709 times
Version: 1.1
Category: Tutorials

Setting up PHPUnit and Selenium with IntelliJ IDEA/PhpStorm

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

This article intends to summarize the steps taken to set up PHPUnit and Selenium for a Yii project, with IntelliJ IDEA Ultimate (the IDE). It was done on Mac OS X 10.6.

7 0
10 followers
Viewed: 52 670 times
Version: 1.1
Category: How-tos

pass variables or content block from view file to layout file

Created 12 years ago by yiqing95, updated 12 years ago by Maurizio Domba Cerin.

If you use yiic to generate webApplication there will be a layout folder under the protected/views/, and the Controller class under protected/components which will use by default these layouts files.

2 0
6 followers
Viewed: 52 664 times
Version: 1.1
Category: How-tos