Wiki articles

Showing 161-180 of 651 items.

How to display page on fancybox...using CHtml::ajaxlink with yii validation

Created 11 years ago by Ankit Modi, updated 10 years ago by Rohit Suthar.

1) include the fancybox extesion otherwise fancybox js

0 0
4 followers
Viewed: 20 532 times
Version: 1.1
Category: Tutorials

Using phpseclib with Yii

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

I installed phpseclib because I needed to do some AES encryption in my project. After all the hassle of installing php lib, I found out that Yii already has a security module (securityManager). I finally decided to keep using phpseclib because it has one big advantage over Yii securityManager module, it does...

0 0
6 followers
Viewed: 20 553 times
Version: 1.1
Category: How-tos
Tags: security

i18n for your model in just 1 line

Created 15 years ago by mintao, updated 14 years ago by Orteko.

A simple trick to get the localized version of a model field is to add this little method to your models.

12 0
9 followers
Viewed: 20 600 times
Version: 1.1
Category: Tutorials
Tags: i18n

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 608 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 826 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 837 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 866 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 941 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 996 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 079 times
Version: 1.1
Category: Tutorials

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

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 199 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 228 times
Version: 1.1
Category: Tips

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

Auto TDD - How to auto-run PHPUnit

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

If you are lucky enough and have the privilege to develop on a Linux based environment, this little tip might boost-up your TDD process (at least the Unit Testing part). Please note, that this should work just fine with Apple computers also, but not tested!

3 0
6 followers
Viewed: 21 479 times
Version: 1.1
Category: Tips