Wiki articles

Showing 81-100 of 800 items.

How to keep filters simple in CGridView

Created 4 years ago by Peppe, updated 4 years ago by le_top.

The problem is not new: after setting some filters in a grid (typically in admin view), and gone to another page, returning in the grid's page I would like to find the filters with previous setting mantained.

0 0
2 followers
Viewed: 9 398 times
Version: 1.1
Category: How-tos

Create thermometer using rgraph

Created 6 years ago by Ankit Modi, updated 5 years ago by Ankit Modi.

Hi friends,

2 0
4 followers
Viewed: 9 401 times
Version: Unknown (update)
Category: Tips

How to add an analogue clock widget on your skeleton application

Created 8 years ago by mocapapa, updated 8 years ago by mocapapa.


Followings are the simple steps to put an analogue clock widget on your skeleton application that is just generated by yiic.

1 0
1 follower
Viewed: 9 450 times
Version: 1.1
Category: Tutorials
Tags:

How to make bootstrap tabs remain active/selected after navigating to different web pages.

Created 2 years ago by emrald, updated 2 years ago by emrald.

Bootstrap tabs gets unselected/inactive when user navigates to other page and comes back. How to make bootstrap tabs remain active/selected after navigating to different web pages.

1 0
3 followers
Viewed: 9 460 times
Version: 2.0
Category: Tutorials

MongoDB's RBAC support class extending BaseManager

Created 4 years ago by edoardo849, updated 4 years ago by edoardo849.

Here's a possible implementation for MongoDb of the RBAC standard. Create a class "MongoDbManager" in `common\components and modify your params.php` file like this:

0 0
4 followers
Viewed: 9 481 times
Version: 2.0
Category: How-tos
Tags: mongodb, rbac, yii2

Getting information from the current locale

Created a year ago by CeBe, updated a year ago by CeBe.

Yii 2.0 comes with a formatter component to format dates, numbers, and other values for international users according to their locale. This is very useful for displaying data. When working with incoming data or when using enhanced input methods like the [MaskedInput widget](https://www.yiiframework.com/doc/api/2.0/yii-widgets-maskedinp...

5 0
2 followers
Viewed: 9 515 times
Version: 2.0
Category: How-tos

belajar AR : part 1 (learn AR : part 1)

Created 8 years ago by rianday, updated 8 years ago by rianday.

hai teman yii... apa kabar.. kembali lagi bersama catatan saya..

0 0
1 follower
Viewed: 9 623 times
Version: 1.1
Category: Tutorials
Tags: indonesia

Alternative wildcard characters CDbCriteria

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

In SQL, wildcard characters can be used in "LIKE" expressions; the percent sign (%) matches zero or more characters, and underscore (_) a single character. Sometimes users are not familiar with these or they are using different ones like (*) and (+) similar to regular expressions. My colleages do so and then i decided to add this feature by extending CbCriteria. Especially adding a new parameter $...

1 0
2 followers
Viewed: 9 655 times
Version: 1.1
Category: How-tos

Deploy yii on pagoda box

Created 7 years ago by francis ja, updated 7 years ago by francis ja.

pagoda box is very useful tool for a programmer to test their php app online so its very useful one. For deploying code pagodabox use git command

4 0
5 followers
Viewed: 9 659 times
Version: 1.1
Category: Tutorials

Selecting best language based on Browser language and available languages.

Created 4 years ago by le_top, updated 4 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: 9 660 times
Version: 1.1
Category: Tips

embed a view file of the class which implement the CAction.

Created 8 years ago by Davidhhuan, updated 8 years ago by Davidhhuan.

In Yii, we can define an action class and ask the controller to instantiate it. And we always create ourselves actions class in rootPath/protected/extensions, and the view file we called in the actions class always are located in rootPath/protected/views/ControllerNAME or rootPath/themes/ThemeNAME/ControllerNAME, then when we use the same actions class in different controllers, we have to copy it...

1 1
2 followers
Viewed: 9 678 times
Version: 1.1
Category: Tutorials

using editors of yiibooster - fix issues - configuration

Created 6 years ago by Kostas Apazidis (KonApaz), updated 5 years ago by Nur Rochim.

if you have use the yiibooster extension, you have definitely used the amazing redactor, html5 and ckEditor editors.

4 0
4 followers
Viewed: 9 729 times
Version: 1.1
Category: How-tos

shortcut/usefull access roles methods RBAC

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

These are functions that I used very often, may helps you!

1 0
5 followers
Viewed: 9 811 times
Version: 1.1
Category: Tutorials

Language Selector

Created 3 years ago by Programmer Thailand, updated 3 years ago by Programmer Thailand.

common\components\LanguageSelector.php

<?php
namespace common\components;

1 0
5 followers
Viewed: 9 829 times
Version: 2.0
Category: Tutorials

Locking your Yii 2 project package versions with composer.lock

Created 5 years ago by Kartik V, updated 5 years ago by Kartik V.

Ok, you have installed a Yii 2 basic or advanced app for the first time and completed the post install steps. You have picked up a few extensions to install for the first time as well. You would already see a composer.lock file in your application root folder.

0 2
37 followers
Viewed: 9 856 times
Version: 2.0
Category: Tips

Get notified about the status of a Facebook user in your web app using periodic Ajax calls.

Created 6 years ago by sirin k, updated 2 years ago by Maurizio Domba Cerin.

hello,

 This article is helpful only if you have the following situation:
 A web app which uses facebook login to login its users and if a user is logged out from his/her facebook account through another browser tab, then your app dont know that he is logged out  out or not from his facebook account and he/she will remain as logged in your web application.Its ok if you have no problem wi...
4 0
6 followers
Viewed: 9 864 times
Version: 1.1
Category: Tips
Tags: facebook, user

using jqbargraph to create beautiful graphs

Created 6 years ago by MAHESH.E.U, updated 6 years ago by MAHESH.E.U.

If you are about to create a graph, the best option i would suggest is the jqbargraph.

5 0
9 followers
Viewed: 9 887 times
Version: 1.1
Category: Tips

How to have truly multilingual URLs

Created 3 years ago by oligalma, updated 2 years ago by Maurizio Domba Cerin.

We can easily have a multilingual site if we put a "lang" parameter that comes via GET. For example:

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

Make the authentication more securely

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

Suppose a hacker has an account of your website He could set the PHPSESSID to empty After of that He login in your system The PHPSESSID remains blank and user has already logged with this session

2 0
3 followers
Viewed: 10 006 times
Version: 1.1
Category: Tutorials

Single PHP entry point with Nginx

Created 4 years ago by MadAnd, updated 4 years ago by MadAnd.

In this article I will show you how to slightly increase application security, by exploiting the fact that Yii implements the Front Controller Pattern.

4 0
3 followers
Viewed: 10 027 times
Version: all
Category: How-tos