Wiki articles

Showing 41-60 of 800 items.

CJuiDatePicker extended for more/better language support

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

The number of languages supported by the standard CJuiDatePicker implementation is limited and the language code to use is different from the application's language code. This Wiki shows how to improve on that.

1 0
1 follower
Viewed: 8 015 times
Version: 1.1
Category: How-tos

How to Enhance a CGridView

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

by: Christian Salazar (bluyell, @salazachris74, christiansalazarh@gmail.com)

2 0
5 followers
Viewed: 8 037 times
Version: 1.1
Category: How-tos

Automatically get the SVN Revision Number of your Project

Created 5 years ago by jcagentzero, updated 5 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: 8 071 times
Version: all
Category: Tutorials

Console Based CAuthManager Helper

Created 4 years ago by bluyell, updated 4 years ago by bluyell.

This behavior enable you to command the RBAC via console. This avoids you to install a entire rbac graphic toolkit to set up some rules in the rbac, maybe you are running inside a ssh console.

0 0
1 follower
Viewed: 8 098 times
Version: 1.1
Category: How-tos

Tags manipulation using Select2 in single field

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

Sometime its very important to perform many actions/operation with limited time frame for friendly use, select2 provides a lot of such functionality , I just extend it tags functionality to provide a quick use for developer to save time, as I spent much time on it.

2 0
35 followers
Viewed: 8 101 times
Version: 1.1
Category: Tutorials

A universal model attribute for its synthetic representation

Created 3 years ago by Alexandre Rodichevski, updated 3 years ago by Alexandre Rodichevski.

It is convenient to use the same identification attribute, say info, in all of the active records of your application. It should be a virtual read-only attribute defined by a getter method, its label being the model name.

0 0
3 followers
Viewed: 8 151 times
Version: 2.0
Category: Tips

embedded javascript block in your view with IDE checking or intellisense

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

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

1 0
3 followers
Viewed: 8 204 times
Version: 2.0
Category: Tips

Cgridview counter column

Created 6 years ago by Nisanth thulasi, updated 6 years ago by trond.

some times we want to show the serialNo on cgridview .

4 0
8 followers
Viewed: 8 225 times
Version: Unknown (update)
Category: Tips

How to display images in CJuiAutoComplete without extenstions

Created 4 years ago by Asmaa, updated 7 months 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: 8 231 times
Version: 1.1
Category: Tutorials

How to provide a fallback or mapping for translation messages?

Created 6 years ago by schmunk, updated 4 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: 8 282 times
Version: 1.1
Category: How-tos
4 0
8 followers
Viewed: 8 294 times
Version: Unknown (update)
Category: Tutorials
Tags: assets, heroku

Yii configuration: Dynamic & User dependent

Created 4 years ago by le_top, updated 4 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: 8 349 times
Version: 1.1
Category: How-tos

Tarpit for bad bots

Created 7 years ago by mithereal, updated 7 years ago by mithereal.

I recently built a tarpit for bad bots.

1 0
9 followers
Viewed: 8 401 times
Version: 1.1
Category: How-tos
Tags: bots, tarpit

Configuring Yii to run on both Windows and OSX

Created 5 years ago by trond, updated 5 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: 8 550 times
Version: 1.1
Category: How-tos
Tags: config

How to Reuse File Upload Code via Behavior

Created 5 years ago by Ahamed Rifaideen, updated 5 years ago by Ahamed Rifaideen.

hello guys now i am going to show you how to Reuse File Upload Code across multiple projects.

1 0
1 follower
Viewed: 8 600 times
Version: 1.1
Category: How-tos

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

Created 6 years ago by le_top, updated 6 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: 8 637 times
Version: 1.1
Category: Tips

Using PayPal IPN with Yii2

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

I'm using PayPal's script from

0 0
1 follower
Viewed: 8 697 times
Version: 2.0
Category: Tips

Inline views, write less

Created 6 years ago by Firebreaker, updated 6 years ago by Firebreaker.

Sometimes writing views like

3 0
3 followers
Viewed: 8 770 times
Version: Unknown (update)
Category: Tips

Set a menu - reusable code

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

As we know Using crud generator creates menu items in view files (for each view file have a varius menu items)

1 0
3 followers
Viewed: 8 772 times
Version: Unknown (update)
Category: Tips

Using Nginx and Apache2 in separate distributed servers (ie, Amazon EC2 instances)

Created 6 years ago by Luis Lobo Borobia, updated 2 years ago by Luis Lobo Borobia.

We are running one frontend running NGINX and several app servers running Apache2. There are several issues we have come across but right now I'll be documenting one of them. I'll be completing this article when I get more time.

2 0
2 followers
Viewed: 8 792 times
Version: all
Category: Tips