Wiki articles

Showing 241-260 of 827 items.

Login Form With email or Whatever

Created 11 years ago by nabil abdouali nabil abdouali, updated 11 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 688 times
Version: 1.1
Category: How-tos

How to implement cron in Yii 2

Created 11 years ago by hemc hemc, updated 11 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 092 times
Version: 2.0
Category: How-tos
Tags: console, cron, yii2

Select2 Infinite Scroll With Remote Data in Yii

Created 11 years ago by IsraelAma IsraelAma, updated 11 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 238 times
Version: 1.1
Category: How-tos

Automatically get the SVN Revision Number of your Project

Created 11 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 034 times
Version: all
Category: Tutorials

How to Enhance a CGridView

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

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

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

Safely checking if a model class exists (without exploding)

Created 11 years ago by Boaz Boaz, updated 11 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: 21 873 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 11 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 190 times
Version: 1.1
Category: Tutorials

CSqlDataProvider in CGridView

Created 12 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz), updated 11 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 317 times
Version: 1.1
Category: Tutorials

Simple example for language translation

Created 12 years ago by RKA RKA, updated 11 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 193 times
Version: 1.1
Category: How-tos
Tags: i18n, Yii

Attaching multiple event handlers to onBeginRequest

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

Auto-update denormalized attributes with MongoDb and Yii2

Created 12 years ago by edoardo849 edoardo849, updated 11 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 378 times
Version: 2.0
Category: Tips

How to limit number of guest page views

Created 12 years ago by PeRoChAk PeRoChAk, updated 11 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 010 times
Version: 1.1
Category: How-tos

MongoDb's embedded documents mapping for ActiveRecord in Yii2

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

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

4 0
7 followers
Viewed: 32 132 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 11 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: 51 770 times
Version: 1.1
Category: How-tos

Image Puzzle Game

Created 12 years ago by nachi nachi, updated 11 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 544 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 11 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: 24 971 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 7 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 270 times
Version: 2.0
Category: How-tos

CGridView customized CCheckBoxColumn

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

Hi friends,

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

Configuring Yii to run on both Windows and OSX

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

Upload image and content using AJAX and Store it in different table

Created 12 years ago by Selvakumar Kaliyappan Selvakumar Kaliyappan, updated 11 years ago by CeBe CeBe.

var formData = new FormData($("#post-form")[0]);
$.ajax({
    url: '<?php echo Yii::app()->createUrl("forumPost/uploadPost"); ?>',
    type: 'POST',
    data: formData,
    datatype:'json',
    // as...
1 0
5 followers
Viewed: 77 513 times
Version: 1.1
Category: How-tos