Wiki articles

Showing 41-60 of 804 items.

CJuiDatePicker extended for more/better language support

Created 5 years ago by le_top, updated 5 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 365 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 384 times
Version: 1.1
Category: How-tos

`forceCopy` per Asset Bundle

Created 5 years ago by schmunk, updated 5 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: 8 439 times
Version: 2.0
Category: How-tos

Tags manipulation using Select2 in single field

Created 6 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 461 times
Version: 1.1
Category: Tutorials

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 525 times
Version: Unknown (update)
Category: Tips

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 558 times
Version: 1.1
Category: How-tos
4 0
8 followers
Viewed: 8 571 times
Version: Unknown (update)
Category: Tutorials
Tags: assets, heroku

Tarpit for bad bots

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

I recently built a tarpit for bad bots.

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

How to provide a fallback or mapping for translation messages?

Created 6 years ago by schmunk, updated 5 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 647 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 658 times
Version: all
Category: Tutorials

How to display images in CJuiAutoComplete without extenstions

Created 5 years ago by Asmaa, updated a year 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 676 times
Version: 1.1
Category: Tutorials

embedded javascript block in your view with IDE checking or intellisense

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

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

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

An alternative way to ElasticSearch

Created a year ago by Necip, updated a year ago by Necip.

This article is for those who have dealt with the complexity of Elasticsearch or any other indexing machines and are looking for an easier way to index the existing database without additional effort.

1 0
2 followers
Viewed: 8 746 times
Version: all
Category: How-tos

Yii configuration: Dynamic & User dependent

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

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 811 times
Version: 2.0
Category: Tips

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 838 times
Version: 1.1
Category: How-tos

Configuring Yii to run on both Windows and OSX

Created 6 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 962 times
Version: 1.1
Category: How-tos
Tags: config

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

Set a menu - reusable code

Created 6 years ago by Kostas Apazidis (KonApaz), updated 6 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: 9 027 times
Version: Unknown (update)
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: 9 098 times
Version: Unknown (update)
Category: Tips