Wiki articles

Showing 161-180 of 826 items.

YII2 : simple language Switcher Widget

Created 11 years ago by phunsanit phunsanit, updated 11 years ago by phunsanit phunsanit.
  1. create file common\components\languageSwitcher.php
1 0
5 followers
Viewed: 34 927 times
Version: 2.0
Category: Tutorials

Customize your Growl/Alert msg easy and quickly

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

I leverage Kartik's notification widgets.

0 1
2 followers
Viewed: 19 786 times
Version: 2.0
Category: Tips

Relation scope to test existence of related records ("EXISTS")

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

When one needs to select a record in a table that do not have related records through a relation, it is generally suggested to use a subquery. Personnaly, I prefer a high level approach, and I have a method to do it with scopes.

1 0
2 followers
Viewed: 17 591 times
Version: 1.1
Category: How-tos

Console Based CAuthManager Helper

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

This behavior enable you to command the RBAC via console. This avoids you to install a entire rbac graphic toolkit to set up some rules in the rbac, maybe you are running inside a ssh console.

0 0
1 follower
Viewed: 15 691 times
Version: 1.1
Category: How-tos

Checking for "expired" sessions/logins on the client side

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

Getting "Expired token" errors ? Here is a solution to avoid invalid CSRF on POST or ajax requests, or user identity changes.

4 0
12 followers
Viewed: 47 199 times
Version: 1.1
Category: How-tos

Profiling using XDebug

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

A short explication on how to extract profile information for PHP on your server using XDebug and KCacheGrind or WinCacheGrind.

3 0
3 followers
Viewed: 26 719 times
Version: all
Category: How-tos

CGridView Date Range Without Cookies or Session (External Filtering)

Created 12 years ago by ezekielnoob ezekielnoob, updated 11 years ago by ezekielnoob ezekielnoob.

Here's a tutorial on how to create a CGridView with external date filters the trick is to create hidden columns within the CGridView Filters something like in the example below: grid

3 0
8 followers
Viewed: 24 755 times
Version: 1.1
Category: How-tos

Use kartik Growl with Yii2 flash messages

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

This is to show you how to use Yii2 flash messages with Kartik Growl (bootstrap notify wrapper).

8 0
11 followers
Viewed: 53 208 times
Version: 2.0
Category: How-tos

Using Yii Gallery Manager in your Yii 1.x application

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

Finding good looking, working and not abandoned gallery manager for Yii 1.x application is a tough task. Out of all I found, only yii-gallery-manager extension looked promising. But, after downloading it, it turned out, that there are certain unusual things to do, to include it in your application. So, I decided to write this article...

0 0
1 follower
Viewed: 20 381 times
Version: 1.1
Category: How-tos

Things to Consider when application hosting on AppFog

Created 11 years ago by VINAY Kr. SHARMA VINAY Kr. SHARMA, updated 11 years ago by VINAY Kr. SHARMA VINAY Kr. SHARMA.

I faced many issues when hosted our company website on AppFog.

1 0
1 follower
Viewed: 10 743 times
Version: 1.1
Category: Tips

NetBeans IDE and Yii projects

Created 15 years ago by marcovtwout marcovtwout, updated 11 years ago by marcovtwout marcovtwout.

This page is created to supply short directions and general tips for managing a Yii application in NetBeans IDE.

65 0
66 followers
Viewed: 266 901 times
Version: 1.1
Category: Tutorials

Active Record snapshotting (Model data base history)

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

One of the common tasks the web application might be required to perform, especially the app using some kind of a CMS, is to save the history of data changes. Your client for sure will want the answer to this simple question - If I mess this up or delete by accident can we bring it back? Well, DB backup is one thing and quick recovery is another - let's talk about latter one.

1 0
5 followers
Viewed: 19 878 times
Version: 1.1
Category: Tutorials

Using PayPal IPN with Yii2

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

I'm using PayPal's script from

0 0
1 follower
Viewed: 16 215 times
Version: 2.0
Category: Tips

Debuging variables in Yii2

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

This tutorial is explained following "basic" application structure.

4 1
8 followers
Viewed: 48 317 times
Version: 2.0
Category: Tips

`forceCopy` per Asset Bundle

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

During development and depending on your setup you may need to use the options forceCopy or linkAssets of the asset manager to work around possible file-system and permission issues.

1 0
1 follower
Viewed: 17 059 times
Version: 2.0
Category: How-tos

Searching and Sorting by Count of Related Items in CGridView

Created 14 years ago by softark softark, updated 11 years ago by softark softark.

class Post extends CActiveRecord {

...

} ` When you list Authors in grid you would like to print the count of posts in column, allow sorting on this column and probably filtering by the count.

21 0
40 followers
Viewed: 65 101 times
Version: 1.1
Category: How-tos

Selecting best language based on Browser language and available languages.

Created 11 years ago by le_top le_top, updated 11 years ago by le_top 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: 19 392 times
Version: 1.1
Category: Tips

New Relic Error Alert with Yii

Created 12 years ago by simon604 simon604, updated 11 years ago by razvanphp razvanphp.

Introduction

2 0
4 followers
Viewed: 23 840 times
Version: 1.1
Category: Tips

BUM - Add Additional Info to a User

Created 12 years ago by firefly firefly, updated 11 years ago by Anibal Anibal.

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

0 0
4 followers
Viewed: 24 551 times
Version: 1.1
Category: How-tos

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

Created 11 years ago by Fábio Sales Fábio Sales, updated 11 years ago by Fábio Sales 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: 25 809 times
Version: 1.1
Category: How-tos