Wiki articles

Showing 41-60 of 804 items.

Tags manipulation using Select2 in single field

Created 6 years ago by sefburhan, updated 6 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 672 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 677 times
Version: Unknown (update)
Category: Tips
4 0
8 followers
Viewed: 8 702 times
Version: Unknown (update)
Category: Tutorials
Tags: assets, heroku

`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 787 times
Version: 2.0
Category: How-tos

Console Based CAuthManager Helper

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

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

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 914 times
Version: 1.1
Category: Tutorials

How to Reuse File Upload Code via Behavior

Created 6 years ago by Ahamed Rifaideen, updated 6 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 960 times
Version: 1.1
Category: How-tos

Automatically get the SVN Revision Number of your Project

Created 6 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: 9 009 times
Version: all
Category: Tutorials

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

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:

2 0
3 followers
Viewed: 9 054 times
Version: 2.0
Category: Tips

Configuring Yii to run on both Windows and OSX

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

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

Created 7 years ago by le_top, updated 7 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: 9 208 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 210 times
Version: Unknown (update)
Category: Tips

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

Widget Personalizado

Created 8 years ago by Cálcio, updated 5 years ago by Cálcio.

$this->render('index', array( 'dataProvider' => $dataProvider, )); `

6 0
4 followers
Viewed: 9 338 times
Version: 1.1
Category: Tutorials

Search a file size range in CGridView

Created 6 years ago by CrazyCat, updated 6 years ago by CrazyCat.
  1. Create an Active Record Behavior that builds the criteria for the search() method and attach it to your model
  2. Modify the search() method of the model to merge the behavior's criteria in with the rest of the searchable attributes
2 0
2 followers
Viewed: 9 371 times
Version: Unknown (update)
Category: Tips

How to preload dropdowns in CForm

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

So you want to use CForm (form builder), but need to preload dropdowns in a form? It's simpler than it seems.
You got your CFormModel, CForm and the actual Form, right?
Let's say you have the typical State -> City dependent dropdowns, so you would want to load the from with the State and City selected.

1 0
2 followers
Viewed: 9 372 times
Version: Unknown (update)
Category: Tips

Yii 1.1.17 Ubuntu AutoInstall Bash Script

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

Just thought I would share this bash script I wrote to help automate a base install of YII on an Ubuntu server. This script does the following:

1 1
1 follower
Viewed: 9 439 times
Version: 1.1
Category: Others