Wiki articles in category How-tos

Showing 21-40 of 292 items.

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 751 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 798 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 924 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 956 times
Version: 1.1
Category: How-tos

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

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

Generate CTreeview from database table and update a model

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

Suppose we want to set a category to product (or an item in general term), Also suppose categories has sub-categories (multi-level)

1 0
1 follower
Viewed: 14 521 times
Version: 1.1
Category: How-tos

using editors of yiibooster - fix issues - configuration

Created 11 years ago by Kostas Apazidis (KonApaz), updated 11 years ago by Nur Rochim.

if you have use the yiibooster extension, you have definitely used the amazing redactor, html5 and ckEditor editors.

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

Advanced CGridview issues - custom button using php and html

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

This wiki shows about how to make a custom column or how to pass php-Yii-html code in CButtonColumn (as a button)

1 0
2 followers
Viewed: 14 696 times
Version: 1.1
Category: How-tos

MailGun Api Wrapper to send emails

Created 10 years ago by VINAY Kr. SHARMA, updated 5 years ago by Maurizio Domba Cerin.

MailGun.php Class

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

Prevent asset publishing for CListView

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

If you don't want to use any of the AJAX features of CListView and thus want to prevent that it publishes any of its asset files, you can extend it and create a sub class like this:

2 0
6 followers
Viewed: 14 790 times
Version: 1.1
Category: How-tos

TimeZone dropDown

Created 12 years ago by Tibor Katelbach, updated 12 years ago by Maurizio Domba Cerin.

I spend a bit of time looking for the this piece of code while building time feature on a site this tutorial also helped Local time zones and locales

3 0
4 followers
Viewed: 15 107 times
Version: 1.1
Category: How-tos

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

Created 11 years ago by MikeT, updated 5 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: 15 171 times
Version: 1.1
Category: How-tos
Tags: email, mail

Adding Bash Command Completion for Yii Commands

Created 13 years ago by Dustin Oprea, updated 13 years ago by Dustin Oprea.

This article discusses the installation/configuration of the YiiBash project (https://github.com/dsoprea/YiiBash).

3 0
5 followers
Viewed: 15 366 times
Version: 1.1
Category: How-tos

Relation scope to test existence of related records ("EXISTS")

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

When one needs to select a record in a table that do not have related records through a relation, it is generally suggested to use a subquery. Personnaly, I prefer a high level approach, and I have a method to do it with scopes.

1 0
2 followers
Viewed: 15 372 times
Version: 1.1
Category: How-tos

Use phing to make Yii application "installable"

Created 13 years ago by sensorario, updated 13 years ago by Maurizio Domba Cerin.

To use this "how-to", you need to install phing in your machine.

7 0
10 followers
Viewed: 15 742 times
Version: 1.1
Category: How-tos
Tags: phing

Using recaptchlib in your projects

Created 14 years ago by Antonio Ramirez, updated 14 years ago by Antonio Ramirez.

It is good when someone writes extensions for us but trust, sometimes we forget about other approaches that, if we know the library, we shouldn't forget.

5 0
4 followers
Viewed: 16 345 times
Version: 1.1
Category: How-tos

Using Pear Mail Mail_Mime and Mail_Queue

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

require_once 'Mail.php'; // PEAR Mail require_once 'Mail/mime.php'; // PEAR Mail_mime require_once 'Mail/Queue.php'; // PEAR Mail_queue require_once 'Mail/Queue/Container/mdb2.php'; // PEAR Mail_queue mdb2

7 0
11 followers
Viewed: 16 415 times
Version: 1.1
Category: How-tos

Attaching multiple event handlers to onBeginRequest

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

There came the need to perform two operations, always, on 'application boot' time. Example? My real world example involved some geo-location logic (that's the first operation) and syncing of some session details so KcFinder can be in sync with the user in context - each user with his own session container (the second).

1 0
2 followers
Viewed: 16 594 times
Version: 1.1
Category: How-tos

Using Yii Gallery Manager in your Yii 1.x application

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

Finding good looking, working and not abandoned gallery manager for Yii 1.x application is a tough task. Out of all I found, only yii-gallery-manager extension looked promising. But, after downloading it, it turned out, that there are certain unusual things to do, to include it in your application. So, I decided to write this article...

0 0
1 follower
Viewed: 16 720 times
Version: 1.1
Category: How-tos