Wiki articles

Showing 61-80 of 822 items.

How to provide a fallback or mapping for translation messages?

Created 10 years ago by schmunk, updated 9 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: 12 458 times
Version: 1.1
Category: How-tos

Configuring Yii to run on both Windows and OSX

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

MySQL migration environment

Created 8 years ago by Fabrizio Caldarelli, updated 8 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: 12 605 times
Version: 2.0
Category: How-tos

Making a CGridView to keep the selection between page changes

Created 10 years ago by bluyell, updated 9 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: 12 623 times
Version: 1.1
Category: Tutorials

MailGun Api Wrapper to send emails

Created 9 years ago by VINAY Kr. SHARMA, updated 4 years ago by Maurizio Domba Cerin.

MailGun.php Class

1 0
2 followers
Viewed: 12 640 times
Version: 1.1
Category: How-tos
Tags: email, mailgun

Yii configuration: Dynamic & User dependent

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

How to display images in CJuiAutoComplete without extenstions

Created 9 years ago by Asmaa, updated 5 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: 12 754 times
Version: 1.1
Category: Tutorials

Automatically get the SVN Revision Number of your Project

Created 9 years ago by jcagentzero, updated 9 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: 12 789 times
Version: all
Category: Tutorials

XSS safe model content

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

In this post I am going to describe a solution to make your yii-based web application safe from illegal content injections.

4 0
1 follower
Viewed: 12 790 times
Version: 1.1
Category: Tutorials
Tags:

How to keep filters simple in CGridView

Created 9 years ago by Peppe, updated 9 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: 12 798 times
Version: 1.1
Category: How-tos

`forceCopy` per Asset Bundle

Created 9 years ago by schmunk, updated 9 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: 12 815 times
Version: 2.0
Category: How-tos

yii vim eclimd how it works

Created 13 years ago by RusAlex, updated 12 years ago by RusAlex.

I want to create a wiki page, and therefore im opening this discussion on this forum, for answering all questions and see other opinions, how do you use vim with yii.

8 0
8 followers
Viewed: 12 860 times
Version: 1.1
Category: How-tos
Tags: eclimd, vim, vimrc

Gettext and Poedit HOWTO

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

Example settings when using Gettext for i18n.

0 0
2 followers
Viewed: 12 968 times
Version: 1.1
Category: Tutorials

Using PayPal IPN with Yii2

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

I'm using PayPal's script from

0 0
1 follower
Viewed: 12 970 times
Version: 2.0
Category: Tips

embedded javascript block in your view with IDE checking or intellisense

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

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

2 0
3 followers
Viewed: 13 024 times
Version: 2.0
Category: Tips

Using Apostle.io to send formatted, trackable emails from Yii applications

Created 10 years ago by MikeT, updated 4 years ago by Maurizio Domba Cerin.

Apostle provides a nifty facility for sending app-generated, transactional emails from your application including Wordpress-like mail formatting and full tracking (delivery, opening, clicking etc.) of all emails sent. No need to set up email facilities on your app server!

2 1
2 followers
Viewed: 13 028 times
Version: 1.1
Category: How-tos
Tags: email, mail

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

Created 11 years ago by le_top, updated 11 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: 13 052 times
Version: 1.1
Category: Tips

Yii tinymce结合syntaxHighlighter和syntax

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

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

1 0
0 follower
Viewed: 13 132 times
Version: 1.1
Category: Tutorials

A simple widget - jump2link

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

namespace app\components;

0 0
1 follower
Viewed: 13 137 times
Version: 2.0
Category: Tutorials

Yii Rights Management Tips

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

yii rights some tips..

2 0
4 followers
Viewed: 13 182 times
Version: 1.1
Category: Tips