Wiki articles

Showing 181-200 of 651 items.

Advanced CTabView using CClipWidget

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

Here is a way to dynamically extend tabs based on clips.
Probably even more complex things could be done.

2 0
2 followers
Viewed: 18 181 times
Version: 1.1
Category: Tutorials
Tags:

Clear CGridView Filters, Sort & Pager

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

Clearing CGridView filters and sort orders from the web pages, is usefull for the end user. Yii does not seem to propose a standard method. Furthermore, this is especially usefull when filters are "remembered" in the user's session.

2 0
3 followers
Viewed: 18 645 times
Version: 1.1
Category: How-tos

How to pass the third parameter to UserIdentity on login authentication

Created 9 years ago by Rohit Suthar, updated 9 years ago by Rohit Suthar.

In this wiki I will show how could wo pass the third parameter to UserIdentity on login authenticate. So we can do separate login authentcation from two or more different models from single login form.

2 0
5 followers
Viewed: 34 288 times
Version: 1.1
Category: How-tos

checkBox in CGridview

Created 9 years ago by n-r, updated 9 years ago by n-r.

some when you need to add checkbox in cgridview and change state of selected rows by additianal parameters. in view :

2 0
3 followers
Viewed: 29 377 times
Version: 1.1
Category: Others

How to validate the uniqueness of multiple columns

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

I am going to show you an effective way to validate the uniqueness of multiple columns.

2 0
2 followers
Viewed: 18 294 times
Version: 1.1
Category: How-tos

Selecting best language based on Browser language and available languages.

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

Your application is international and you have to select the best language for the user. Your user may have selected 'fr_CA' and you have 'fr_FR' or 'fr' available. What do you do? Here is a tip.

2 0
1 follower
Viewed: 15 415 times
Version: 1.1
Category: Tips

How to add a named scope to ActiveRecords with a behavior

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

Since Yii 1.0.5 you can use named scopes with ActiveRecords. They are a great help in simplifying your query calls.

2 0
10 followers
Viewed: 34 979 times
Version: 1.1
Category: Tutorials
Tags:

How to register scripts and css

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

Then, we write this in the config > main.php:

2 0
2 followers
Viewed: 93 570 times
Version: 1.1
Category: How-tos

How to log context information to logger (session id, user, ...)

Created 14 years ago by olafure, updated 11 years ago by ajsharma.

Logging context information (session, user, ...) to the logfile can be of great help tracking down problems with specific users.

2 0
5 followers
Viewed: 24 180 times
Version: 1.1
Category: Tutorials
Tags: Logging

Useful Multilanguage extensions collection and use.

Created 10 years ago by cihappy, updated 9 years ago by Rohit Suthar.

What I want to achieve:

2 0
3 followers
Viewed: 9 897 times
Version: 1.1
Category: Tips

How to extend yiic shell commands

Created 14 years ago by qiang, updated 13 years ago by wei.

While yiic shell tool is very convenient at generating skeleton code in our application, the generated code is not always what we want. For example, we may want the generated code to carry specific copyright information; we may want to use our own coding style; we may want to add more features; and so on. All these can be accomplished easily in Yii.

2 0
5 followers
Viewed: 33 099 times
Version: 1.1
Category: Tutorials
Tags: yiic

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

New Relic Error Alert with Yii

Created 10 years ago by simon604, updated 9 years ago by razvanphp.

Introduction

2 0
4 followers
Viewed: 20 577 times
Version: 1.1
Category: Tips

Custom column in TbGridView with icon by condition, find out icon class glyphicons easy (YiiBooster)

Created 10 years ago by Kostas Apazidis (KonApaz), updated 9 years ago by Rohit Suthar.
2 0
5 followers
Viewed: 41 443 times
Version: 1.1
Category: Tips

Installing WAMP - Apache, MySQL, & PHP on Windows 7

Created 13 years ago by Yeti, updated 13 years ago by Trejder.

Installing WAMP on XP was pretty easy; W7 is not so trivial. It's not difficult once you know, but it took me best part of a day to figure out and required gleaning various bits of information from around the web; this tutorial brings it all together in one place to (hopefully) make other peoples lives that bit easier. It does assume that you are reasonably happy configuring Apache, PHP, and MySQL...

2 0
1 follower
Viewed: 45 670 times
Version: 1.1
Category: Tutorials
Tags:
2 0
9 followers
Viewed: 14 978 times
Version: 1.1
Category: Tutorials

ClientValidation for files (modern browsers)

Created 10 years ago by Kostas Apazidis (KonApaz), updated 9 years ago by CeBe.

There are cases that you want to validate the file format, size, extension etc but how to do that without submit the form ?

2 0
6 followers
Viewed: 18 104 times
Version: 1.1
Category: How-tos

Take more control of CGridview and model searching (related model or another controller)

Created 10 years ago by Kostas Apazidis (KonApaz), updated 9 years ago by CeBe.

Suppose you have an Application in Yii that manages hotels each one has many customers.

2 0
6 followers
Viewed: 41 550 times
Version: 1.1
Category: How-tos

Using the jamselect widget with min and max values

Created 13 years ago by got 2 doodle, updated 13 years ago by wei.

The keywords will be stored in a text field in a comma delimited format. The keywords will be created by the site administrator.

2 0
1 follower
Viewed: 18 649 times
Version: 1.1
Category: How-tos

Publish yii webapp using Git push

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

I did not invent this instructions, I read it somewhere and re-organized in my way as I was trying and it works for me;

2 0
8 followers
Viewed: 19 070 times
Version: 1.1
Category: How-tos
Tags: git