Showing 21-40 of 292 items.

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 11 years ago by Gerhard Liebenberg Gerhard Liebenberg, updated 11 years ago by Gerhard Liebenberg Gerhard Liebenberg. 3 comments

We probably have all used a virtual attribute (model function) to retrieve complex or related data for a CGridView column:

0 0
4
Viewed: 16 866 times
Version: 1.1
Category: How-tos

Yii configuration: Dynamic & User dependent

Created 12 years ago by le_top le_top, updated 12 years ago by le_top le_top. 0 comments

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
Viewed: 16 935 times
Version: 1.1
Category: How-tos

How to provide a fallback or mapping for translation messages?

Created 13 years ago by schmunk schmunk, updated 11 years ago by schmunk schmunk. 1 comment

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
Viewed: 16 999 times
Version: 1.1
Category: How-tos

Configuring Yii to run on both Windows and OSX

Created 12 years ago by trond trond, updated 12 years ago by CeBe CeBe. 2 comments

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
Viewed: 17 510 times
Version: 1.1
Category: How-tos

Attaching multiple event handlers to onBeginRequest

Created 12 years ago by Boaz Boaz, updated 12 years ago by CeBe CeBe. 0 comments

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
Viewed: 19 281 times
Version: 1.1
Category: How-tos

ISA hierarchy of tables inside a database and how to implement a single form

Created 15 years ago by pligor pligor, updated 15 years ago by pligor pligor. 2 comments

Please consider the following Dear software engineers imagine I have a simple ISA hierarchy: parent A with children B and C. So let's say we have the corresponding tables named "a", "b", "c" and (created with the help of the gii model creator) the classes A, B, C The following is a screenshot from MySQL workbench: ![MySQL workbench screenshot](http://s4.postimage.org/4tuwkm43d/Screenshot.pn...

1 0
3
Viewed: 20 115 times
Version: 1.1
Category: How-tos

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

Created 12 years ago by MikeT MikeT, updated 6 years ago by Maurizio Domba Cerin Maurizio Domba Cerin. 2 comments

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
Viewed: 20 199 times
Version: 1.1
Category: How-tos