Wiki articles

Showing 201-220 of 823 items.

Sort and save order of model-elements drag & drop

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

Suppose you have Products,Categories and each product belongs in many categories

1 0
4 followers
Viewed: 20 609 times
Version: 1.1
Category: Tutorials

adding class and links to Ctreeview node

Created 13 years ago by bingjie2680, updated 13 years ago by bingjie2680.

This article will show you how to add links and class to each node in ctreeview. so you can attach events in js by obtaining handler on anchor or class.

4 0
6 followers
Viewed: 20 663 times
Version: 1.1
Category: Tips

Rendering a view file in a console application

Created 13 years ago by Tompi, updated 13 years ago by Tompi.

When someone want to send formatted HTML mails from a console application she/he will probably come across the problem of rendering view files.

2 1
7 followers
Viewed: 20 708 times
Version: 1.1
Category: How-tos

How to extend CFormatter, add i18n support to booleanFormat and use it in CDetailView

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

As you know, the CDetailView widget displays details of a single model. If no formatting is specified, boolean values that are stored in the database as 0 and 1, are represented in the detail view as 0 and 1. If formatted as boolean, they are represented as 'No' and 'Yes'. We want to add i18n support, so that Yes and No appear in the current language.

9 0
9 followers
Viewed: 20 827 times
Version: 1.1
Category: How-tos

The Comedy of Errors

Created 13 years ago by fsb, updated 12 years ago by Mike.

Please join the party by adding your own favorite Yii programming errors. Be sure to leave at least a hint at the correction.

19 0
15 followers
Viewed: 20 840 times
Version: 1.1
Category: Others

An important tip when you are using CArrayDataProvider.

Created 12 years ago by sirin k, updated 8 years ago by Maurizio Domba Cerin.

Yii's CArrayDataProvider is very helpful to display model relation data's directly on it.But it is truely a confusing one because by default it will assume a table field named “id” as primary key for its pagination purpose and what if you dont have field named “id” as primary key on your table? so its truely confusing and if you tried to display without an “id” field on ur table you will get an...

5 1
5 followers
Viewed: 20 867 times
Version: 1.1
Category: Tips

free PHP IDE CodeLobster supports Yii framework

Created 13 years ago by clod, updated 13 years ago by clod.

This page is created to supply short directions and general tips for managing a Yii application in Codelobster PHP Edition.

5 0
1 follower
Viewed: 20 911 times
Version: 1.1
Category: Tutorials

CGridView customized CCheckBoxColumn

Created 11 years ago by chandran, updated 11 years ago by CeBe.

Hi friends,

3 0
6 followers
Viewed: 20 942 times
Version: 1.1
Category: Tips

Save uploaded file with any filename characters

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

First of all this is a very common problem, for more details see this post http://www.yiiframework.com/forum/index.php/topic/52052-upload-file-with-any-charset/

1 0
3 followers
Viewed: 20 997 times
Version: 1.1
Category: How-tos

Tunneling using SSH in a limited enviroment

Created 11 years ago by nineinchnick, updated 11 years ago by CeBe.

This tutorial describes how to connect to a remote service via tunnel when only most basic software is available on the remote server. It is not directly related to Yii. It could be hovewer useful for web developers working with shared hosting sites with limited access.

1 0
3 followers
Viewed: 21 038 times
Version: all
Category: Others

How to prevent Login from two places?

Created 11 years ago by Rohit Suthar, updated 11 years ago by Rohit Suthar.

In this wiki I will show how to Disallowing login from multi places. User can login or access their account at time, only single place.

0 0
5 followers
Viewed: 21 080 times
Version: 1.1
Category: Tutorials

How to use BootstrapInterface

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

Yii2 introduces the BootstrapInterface to ease our application initialization tasks, whether they are composer based or Application bootstrap (do not mistaken with Bootstrap CSS Framework) based tasks. On this article, I am going to explain how to use it on y...

2 0
3 followers
Viewed: 21 098 times
Version: 2.0
Category: How-tos

Using Yii with PHP 5.4 built-in webserver instead of Apache

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

Since version 5.4 PHP can work as a simple webserver so you can develop Yii applications without installing Apache. That's how to use it:

21 0
5 followers
Viewed: 21 107 times
Version: 1.1
Category: How-tos

Execute migration on server/linux using shell

Created 9 years ago by darioo, updated 9 years ago by darioo.

It's easy to execute migration locally on XAMPP using cmd, but on server where you script is it's little bit harder.

0 0
3 followers
Viewed: 21 191 times
Version: 2.0
Category: How-tos

History Autocomplete

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

In application development we often have to choose how to mange recurrent values.

3 0
9 followers
Viewed: 21 201 times
Version: 1.1
Category: How-tos

A simple action for XUpload extension

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

All the basic functionality for an action used by the xupload extension. Check resources for the source code of this action

3 0
5 followers
Viewed: 21 234 times
Version: 1.1
Category: Tips

REST API and null values in XML

Created 8 years ago by marko60, updated 8 years ago by marko60.

I have been working on a REST API using the excellent tools provided by Yii2. My problem was that I have to differentiate between empty values and null values. In other words, <elem></elem> is different from null as it represents an empty string. Also, although some use <elem/> to represent a null value it should still be interpreted as an empty string. In other cases, the absence of the eleme...

0 0
0 follower
Viewed: 21 268 times
Version: 2.0
Category: Tips
Tags: null, REST, XML

Before Query Example : Soft Delete

Created 10 years ago by moo.tensai, updated 10 years ago by moo.tensai.

This is how i do before query on Yii 2.0

0 0
3 followers
Viewed: 21 417 times
Version: 2.0
Category: How-tos

Getting nulls from database instead of empty strings

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

To get null from database instead of empty strings you need to set up your DB connection as follows:

13 0
11 followers
Viewed: 21 445 times
Version: 1.1
Category: Tips
Tags: database, null