Wiki articles

Showing 241-260 of 828 items.

Update Gridview with Dropdown Selection

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

I recently worked on updating the content of a gridview based on the selection of a dropdown menu. I thought I should share it in the forum...

0 0
4 followers
Viewed: 19 109 times
Version: 1.1
Category: Tips

Login Form With email or Whatever

Created 12 years ago by nabil abdouali nabil abdouali, updated 12 years ago by nabil abdouali nabil abdouali.

Here is my solution to login with email or anything else This update works with database mysql You must generate the user model with GII

1 2
2 followers
Viewed: 34 851 times
Version: 1.1
Category: How-tos

How to implement cron in Yii 2

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

In advance template there is already a file yii. And there is no need to run it as php, it is Linux script.

3 0
13 followers
Viewed: 107 343 times
Version: 2.0
Category: How-tos
Tags: console, cron, yii2

Select2 Infinite Scroll With Remote Data in Yii

Created 12 years ago by IsraelAma IsraelAma, updated 12 years ago by CeBe CeBe.

I was able to set up the infinite scroll of select2 in Yii. I am glad to share it with you. The demo and source code can be found here. However, select2 for Yii can be found here which uses a widget.

3 0
5 followers
Viewed: 25 437 times
Version: 1.1
Category: How-tos

Automatically get the SVN Revision Number of your Project

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

How to Enhance a CGridView

Created 12 years ago by bluyell bluyell, updated 12 years ago by CeBe CeBe.

by: Christian Salazar (bluyell, @salazachris74, christiansalazarh@gmail.com)

2 0
5 followers
Viewed: 14 334 times
Version: 1.1
Category: How-tos

Safely checking if a model class exists (without exploding)

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

While rewriting the PcReportContent extension I'm maintaining I've bumped to a challenge. This wiki was born out of it.

1 0
2 followers
Viewed: 22 031 times
Version: 1.1
Category: How-tos

Making a CGridView to keep the selection between page changes

Created 12 years ago by bluyell bluyell, updated 12 years ago by CeBe 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: 15 323 times
Version: 1.1
Category: Tutorials

CSqlDataProvider in CGridView

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

In this wiki I will show how could use a CSqlDataProvider in CGridView with specific features

3 0
9 followers
Viewed: 39 525 times
Version: 1.1
Category: Tutorials

Simple example for language translation

Created 12 years ago by RKA RKA, updated 12 years ago by CeBe CeBe.

Language translation is a common requirement in multi lingual sites. In Yii, we can translate using message and view translation.

1 0
5 followers
Viewed: 41 437 times
Version: 1.1
Category: How-tos
Tags: i18n, Yii

Attaching multiple event handlers to onBeginRequest

Created 12 years ago by Boaz Boaz, updated 12 years ago by CeBe 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: 17 773 times
Version: 1.1
Category: How-tos

Auto-update denormalized attributes with MongoDb and Yii2

Created 12 years ago by edoardo849 edoardo849, updated 12 years ago by CeBe CeBe.

You have different collections in MongoDb with de-normalized attributes. As you may know, due to its not-join nature, MongoDb tends to encourage repetition of the same value in different collections (de-normalization). In this MongoDb is opposed to a more SQL-like approach where you usually reference only the ID of the value with a foreign key.

1 0
3 followers
Viewed: 21 615 times
Version: 2.0
Category: Tips

How to limit number of guest page views

Created 12 years ago by PeRoChAk PeRoChAk, updated 12 years ago by CeBe CeBe.

In some cases, we have to limit the number of page views for the guests users. Yii provide an efficient method to get this.

2 0
5 followers
Viewed: 11 136 times
Version: 1.1
Category: How-tos

MongoDb's embedded documents mapping for ActiveRecord in Yii2

Created 12 years ago by edoardo849 edoardo849, updated 12 years ago by CeBe CeBe.

suppose to have in Mongo a collection "user" like:

4 0
7 followers
Viewed: 32 352 times
Version: 2.0
Category: How-tos

How to create a simple logout link in the view?

Created 12 years ago by mi.sarah mi.sarah, updated 12 years ago by CeBe CeBe.

Here you learn to create and set a simple ahref-link to logout the current user.

0 2
1 follower
Viewed: 52 394 times
Version: 1.1
Category: How-tos

Image Puzzle Game

Created 12 years ago by nachi nachi, updated 12 years ago by CeBe CeBe.

I have developed a extension for a image puzzle game. You can use your own images and you can also customize how many rows and columns for the image. It can be used in commercial sites. I just needed your thoughts on the game.

2 0
4 followers
Viewed: 12 711 times
Version: 1.1
Category: Others
Tags: game, image, puzzle

Email by YiiMailer, Call Outlook, IMAP

Created 12 years ago by Scott_Huang Scott_Huang, updated 12 years ago by CeBe CeBe.

In Yii community we have lots of extention can send emails, such as YiiMailer and Swift and so on, or even IMAPI, thanks for team contribution. However, sometimes, in the intranet enviroment, the program cannot run successfully since SMTP /IMAP port been banded. So you need to seek other ways. The most simple way is call outlook as COM.

0 0
6 followers
Viewed: 25 156 times
Version: 1.1
Category: How-tos

Override/Eliminate Bootstrap CSS/JS for Yii 2.0 widgets

Created 12 years ago by Kartik V Kartik V, updated 8 years ago by CeBe CeBe.

An example of customizing the Yii GridView is mentioned here. You can easily override Bootstrap or other styling defaults by changing the GridView default options.

4 2
39 followers
Viewed: 61 571 times
Version: 2.0
Category: How-tos

CGridView customized CCheckBoxColumn

Created 12 years ago by chandran chandran, updated 12 years ago by CeBe CeBe.

Hi friends,

3 0
6 followers
Viewed: 22 575 times
Version: 1.1
Category: Tips

Configuring Yii to run on both Windows and OSX

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