Wiki articles

Showing 201-220 of 651 items.

Behaviour for Time Zone and Format conversion for Date, Time, timestamp, and datetime

Created 9 years ago by Smithesh, updated 8 years ago by Smithesh.

This Behaviour helps to view time/date/timestamp/datetime from db to local Date / Time / Date Time format and in local Timezone. And save into db in with db timezone and db format. You only need to include this behaviour in models where need this facility.

2 0
3 followers
Viewed: 21 705 times
Version: 1.1
Category: How-tos

How to create Module based Login

Created 10 years ago by Ibrar Turi, updated 10 years ago by CeBe.

Lets say we have 3 modules (customer, user, admin) in an application and we need, separate logins for each module.

1 0
7 followers
Viewed: 21 742 times
Version: 1.1
Category: How-tos

How to change Migration Table name and use defined prefix.

Created 11 years ago by Jorgee, updated 11 years ago by jamband.

To accomplish the task of changing Migration table's name, by default tbl_migration, you need to add the following in your ./protected/config/console.php.

3 0
5 followers
Viewed: 21 759 times
Version: 1.1
Category: How-tos

PHPStorm & NetBeans autocomplete problem

Created 11 years ago by Stageline, updated 11 years ago by Stageline.

The problem: If you type Yii::app()->user<ctrl+space> code completion didn't work. This solve it.

12 0
14 followers
Viewed: 21 782 times
Version: 1.1
Category: Tips

BUM - Add Additional Info to a User

Created 10 years ago by firefly, updated 9 years ago by Anibal.

How to add additional information to a user when using BUM extension?

0 0
4 followers
Viewed: 21 856 times
Version: 1.1
Category: How-tos

Using SQLite and CDbMessageSource as a module

Created 11 years ago by pheadeaux, updated 11 years ago by pheadeaux.

There are scenarios when you work with DVCS (like [Mercurial]( http://mercurial.selenic.com/) or [Git]( http://git-scm.com/)) and CDbMessageSource. To my experience keeping the development database and production database in sync can be very...

3 0
9 followers
Viewed: 21 948 times
Version: 1.1
Category: How-tos

Check users online, user last activity, user last ip

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

Stores session data in database and transfer data when session is destroy. Uses for check users online, user's last activity and last ip.

3 0
7 followers
Viewed: 21 953 times
Version: 1.1
Category: How-tos

How to: use github for download yii, create new app, and store our modules or extensions.

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

Yesterday I've written a module for myself. Just an experiment. When I was feeling satisfied, I've created a repository on github, and pushed my code. My module and yii are on github. So I'll show you a "new" way to start our yii projects.

8 0
4 followers
Viewed: 22 056 times
Version: 1.1
Category: How-tos
Tags: git, github

Yii 1.1: Cgridview: Use Special Variable $Data In The Options Of A Button (I.e. Evaluate Options Attribute)

Created 9 years ago by Louis Gac, updated 9 years ago by Louis Gac.

Let's take the example of the above article to display an email button next to a delete button:

3 0
4 followers
Viewed: 22 224 times
Version: 1.1
Category: Tutorials

Limit a CGridView field to some preset length.

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

Sometimes text inside a gridview column is just too long. That's why I figured out a way to make the column smaller while still providing the information.

9 0
9 followers
Viewed: 22 229 times
Version: 1.1
Category: How-tos

How to create a custom exception and show it friendly with CJuiDialog

Created 9 years ago by Fábio Sales, updated 9 years ago by Fábio Sales.

Sometimes we need to create our custom exception and show it to the end user through a friendly way . In this article, I'm showing how to do it using CJuidialog.

0 0
1 follower
Viewed: 22 314 times
Version: 1.1
Category: How-tos

AutoTimestampBehavior

Created 15 years ago by jonah, updated 11 years ago by Yang He.

This behavior will automatically set timestamp fields to the row creation and modification times.

2 2
3 followers
Viewed: 22 590 times
Version: 1.1
Category: Tutorials
Tags:

How to use Smarty renderer in Yii

Created 13 years ago by dongbeta, updated 13 years ago by dongbeta.

At first, create a class named SmartyRenderer under application/components or any directory you want.

3 0
7 followers
Viewed: 22 646 times
Version: 1.1
Category: How-tos

Speedup unit tests by moving MySql data to memory (in Ubuntu)

Created 11 years ago by seb, updated 11 years ago by François Gannaz.

There are several ways to speedup slow unit tests which interact with database:

1 1
3 followers
Viewed: 22 654 times
Version: 1.1
Category: Tips

How to customize your grid columns visible and order by user themselves

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

The export to excel function will affected by the final resorted columns in case you use my export grid to excel extends hzlexportgrid too, Since that export extention just depends on the grid columns configs, and that columns been customized by user themselves just now.

0 0
1 follower
Viewed: 22 670 times
Version: 1.1
Category: How-tos

How to handle decimal separators (e.g comma instead of dot) for l18n

Created 12 years ago by jpablo, updated 12 years ago by jpablo.

Yii i18n does not cover decimal format. Some languages like Spanish (I live in Argentina) uses comma ',' instead of dot '.' as decimal separator.

2 0
10 followers
Viewed: 22 680 times
Version: 1.1
Category: How-tos
Tags:

Caching the config main.php

Created 12 years ago by dckurushin, updated 12 years ago by dckurushin.

The config first required In CApplication constructor

4 1
14 followers
Viewed: 22 741 times
Version: 1.1
Category: Tutorials

How to create a wrapper for a js library

Created 12 years ago by zaccaria, updated 12 years ago by Maurizio Domba Cerin.

This wiki will explain how to include a javascript library in a widget.

16 1
20 followers
Viewed: 22 796 times
Version: 1.1
Category: How-tos

CMenu widget like bootstrap navbar with submenu

Created 8 years ago by kv4nt, updated 8 years ago by kv4nt.
0 0
1 follower
Viewed: 22 847 times
Version: 1.1
Category: Tutorials

Customizing Yii's formatting rules (extending CFormatter)

Created 12 years ago by Haensel, updated 12 years ago by Haensel.

CFormatter is one of Yii's core components and used to format values displayed in widgets like CGridView or CDetailView. All classic formats like numbers, text, urls or datetime are supported but you may have to use a formatting rule that isn't built in. Let's say we want to display arrays of strings (like tags associated with a product model)...

12 0
6 followers
Viewed: 22 874 times
Version: 1.1
Category: Tips