Wiki articles

Showing 61-80 of 823 items.

Making a CGridView to keep the selection between page changes

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

You may find this usefull when you discover your CGridView lost the selection after an update or after a page change, nicely i have build a new extension to cover this problem in a very easy way.

2 0
3 followers
Viewed: 13 768 times
Version: 1.1
Category: Tutorials

MySQL migration environment

Created 9 years ago by Fabrizio Caldarelli, updated 9 years ago by Fabrizio Caldarelli.

It can happen that you work in development environment and you make changes to database tables structures, adding tables, or changing fields.

0 0
2 followers
Viewed: 13 770 times
Version: 2.0
Category: How-tos

How to provide a fallback or mapping for translation messages?

Created 12 years ago by schmunk, updated 10 years ago by schmunk.

Sometimes you want to use exisiting translations for locales, which do not directly match. An example would be a website targeting Germany (de_de), Austria (de_at) and Switzerland (de_ch, fr_ch, it_ch). Although you may have exisiting translations for German (de), French (fr) and Italian (it), there are problems using it directly.

3 0
6 followers
Viewed: 13 807 times
Version: 1.1
Category: How-tos

How to keep filters simple in CGridView

Created 10 years ago by Peppe, updated 10 years ago by le_top.

The problem is not new: after setting some filters in a grid (typically in admin view), and gone to another page, returning in the grid's page I would like to find the filters with previous setting mantained.

0 0
2 followers
Viewed: 13 828 times
Version: 1.1
Category: How-tos

Configuring Yii to run on both Windows and OSX

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

If you develop your Yii project on both Windows and Mac, there can be a problem setting up the configuration unless the configurations for both system are identical. On my machines I have the following configurations:

1 0
4 followers
Viewed: 13 945 times
Version: 1.1
Category: How-tos
Tags: config

Yii configuration: Dynamic & User dependent

Created 10 years ago by le_top, updated 10 years ago by le_top.

It is difficult to perform user dependent theming through a general configuration in 'main.php'. This article proposes a method to do so through a Factory that dynamically generates classes to allow delayed resolution of actual user values. This means that you can refer to values that are stored in the database through the CActiveRecord before Yii is actually loaded. The values will be fetched...

1 0
1 follower
Viewed: 13 995 times
Version: 1.1
Category: How-tos

Gettext and Poedit HOWTO

Created 10 years ago by Maug Lee, updated 10 years ago by Maug Lee.

Example settings when using Gettext for i18n.

0 0
2 followers
Viewed: 14 004 times
Version: 1.1
Category: Tutorials

Patching PHP code (used as a library) without changing the original code!

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

The article Fixing extensions without modifying their code reminded me of another patching technique that I used. My conviction and a hard look on the web had led me to an article [Redefine PHP class methods or class](http://stackoverflow.com/questions/137006/ph...

4 0
5 followers
Viewed: 14 035 times
Version: 1.1
Category: Tips

Yii tinymce结合syntaxHighlighter和syntax

Created 14 years ago by Darwin Wen, updated 14 years ago by Darwin Wen.

首先我们需要下载好Yii tinymce扩展,放入你的extensions目录下,

1 0
0 follower
Viewed: 14 061 times
Version: 1.1
Category: Tutorials

How to display images in CJuiAutoComplete without extenstions

Created 10 years ago by Asmaa, updated 6 years ago by samdark.

I wanted to customize the CJuiAutoComplete, so that it displays a thumb image before the label like the one shown in the following image:

0 0
2 followers
Viewed: 14 097 times
Version: 1.1
Category: Tutorials

Multiple CGridView virtual attributes, retrieved from a single model function. Also communication between CGridView columns and rows; and between CGridView and its own parent view.

Created 10 years ago by Gerhard Liebenberg, updated 10 years ago by Gerhard Liebenberg.

We probably have all used a virtual attribute (model function) to retrieve complex or related data for a CGridView column:

0 0
4 followers
Viewed: 14 142 times
Version: 1.1
Category: How-tos

Using PayPal IPN with Yii2

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

I'm using PayPal's script from

0 0
1 follower
Viewed: 14 224 times
Version: 2.0
Category: Tips

`forceCopy` per Asset Bundle

Created 10 years ago by schmunk, updated 10 years ago by schmunk.

During development and depending on your setup you may need to use the options forceCopy or linkAssets of the asset manager to work around possible file-system and permission issues.

1 0
1 follower
Viewed: 14 279 times
Version: 2.0
Category: How-tos

Saving CGridView filter

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

In this tutorial we will try to save cgridview filter(search) with title etc. basically we want to save two forms data i.e one represents filters and other data about filters like title, description etc. You can define your own structure for filter saving table here are some basic steps

1 0
31 followers
Viewed: 14 303 times
Version: 1.1
Category: Tutorials

embedded javascript block in your view with IDE checking or intellisense

Created 10 years ago by yiqing95, updated 10 years ago by yiqing95.

this is my way for embed js code block in view file:

2 0
3 followers
Viewed: 14 309 times
Version: 2.0
Category: Tips

How to use EzComponents in Yii

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

change your index.php

4 0
6 followers
Viewed: 14 310 times
Version: 1.1
Category: How-tos

MongoDB's RBAC support class extending BaseManager

Created 10 years ago by edoardo849, updated 10 years ago by edoardo849.

Here's a possible implementation for MongoDb of the RBAC standard. Create a class "MongoDbManager" in `common\components and modify your params.php` file like this:

0 0
4 followers
Viewed: 14 346 times
Version: 2.0
Category: How-tos
Tags: mongodb, rbac, yii2

A simple widget - jump2link

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

namespace app\components;

0 0
1 follower
Viewed: 14 351 times
Version: 2.0
Category: Tutorials

Automatically get the SVN Revision Number of your Project

Created 11 years ago by jcagentzero, updated 11 years ago by jcagentzero.

When you are handling so many projects and those projects are saved in different repository locations, you may find it very difficult to keep track all the versions and revisions manually and it will be much harder if you are developing in multiple repository branches.

3 0
4 followers
Viewed: 14 368 times
Version: all
Category: Tutorials

Yii Rights Management Tips

Created 10 years ago by Rajith R, updated 10 years ago by Rajith R.

yii rights some tips..

2 0
4 followers
Viewed: 14 387 times
Version: 1.1
Category: Tips