Wiki articles

Showing 181-200 of 804 items.

How to make use of a fragment cache

Created 11 years ago by dalip, updated 9 years ago by wei.
1 0
2 followers
Viewed: 13 702 times
Version: 1.1
Category: Tutorials

Update Gridview with Dropdown Selection

Created 5 years ago by lgastmans, updated 5 years ago by 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: 13 829 times
Version: 1.1
Category: Tips

REST API and null values in XML

Created 3 years ago by marko60, updated 3 years ago by marko60.

I have been working on a REST API using the excellent tools provided by Yii2. My problem was that I have to differentiate between empty values and null values. In other words, <elem></elem> is different from null as it represents an empty string. Also, although some use <elem/> to represent a null value it should still be interpreted as an empty string. In other cases, the absence of the eleme...

0 0
0 follower
Viewed: 13 840 times
Version: 2.0
Category: Tips
Tags: null, REST, XML

Insert a model record using CGridview

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

CGridview displays existent rows of the table (using DataProvider)

2 0
1 follower
Viewed: 13 853 times
Version: 1.1
Category: How-tos

Google style sign out of all other sessions

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

In this wiki I will show how could logout from all other sessions or all other places.

0 0
5 followers
Viewed: 13 907 times
Version: 1.1
Category: How-tos

Using Pear Mail Mail_Mime and Mail_Queue

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

require_once 'Mail.php'; // PEAR Mail require_once 'Mail/mime.php'; // PEAR Mail_mime require_once 'Mail/Queue.php'; // PEAR Mail_queue require_once 'Mail/Queue/Container/mdb2.php'; // PEAR Mail_queue mdb2

7 0
11 followers
Viewed: 13 913 times
Version: 1.1
Category: How-tos

ClientValidation for files (modern browsers)

Created 6 years ago by Kostas Apazidis (KonApaz), updated 5 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: 13 950 times
Version: 1.1
Category: How-tos

ISA hierarchy of tables inside a database and how to implement a single form

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

Please consider the following Dear software engineers imagine I have a simple ISA hierarchy: parent A with children B and C. So let's say we have the corresponding tables named "a", "b", "c" and (created with the help of the gii model creator) the classes A, B, C The following is a screenshot from MySQL workbench: ![MySQL workbench screenshot](http://s4.postimage.org/4tuwkm43d/Screenshot.pn...

1 0
3 followers
Viewed: 13 997 times
Version: 1.1
Category: How-tos

Turn Web HTML Into Newsletter

Created 7 years ago by yasen, updated 6 years ago by yasen.

These newsletters have always been hard to create as regular web HTML is not properly read by web email interfaces and email clients. I thought that the simplest solution would be to use a web page that would serve as a web version of the newsletter and turn it somehow into newsletter HTML.

6 0
9 followers
Viewed: 14 041 times
Version: 1.1
Category: How-tos

Check online users / set specific user offline

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

How to check the online users or how to logout a specific user from your admin panel? This wiki shows how to do that

1 0
4 followers
Viewed: 14 059 times
Version: 1.1
Category: How-tos

How to prevent Login from two places?

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

In this wiki I will show how to Disallowing login from multi places. User can login or access their account at time, only single place.

0 0
5 followers
Viewed: 14 069 times
Version: 1.1
Category: Tutorials

Clear CGridView Filters, Sort & Pager

Created 5 years ago by le_top, updated 5 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: 14 157 times
Version: 1.1
Category: How-tos

Before Query Example : Soft Delete

Created 4 years ago by moo.tensai, updated 4 years ago by moo.tensai.

This is how i do before query on Yii 2.0

0 0
3 followers
Viewed: 14 170 times
Version: 2.0
Category: How-tos

Implementing a Flat User Access System

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

This article shows a quick and easy way to implement flat user access control system. Flat means, that user access is controlled by level only, which is solution exactly opposite to complex RBAC access systems.

6 0
7 followers
Viewed: 14 191 times
Version: 1.1
Category: How-tos

Directory independent extensions

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

Many people want to use downloaded extensions in their own way. As for me most of the extensions require me to correct Yii::import() instructions inside their source code. All these extensions are directory dependent. To avoid the situation described above, I suggest to implement pseudo-anonymous aliases:

// take the curr...
16 1
7 followers
Viewed: 14 233 times
Version: 1.1
Category: Tips

How to store array/widget configuration to the database with config validation rules

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

Note the tag {{homeUrl}} will be dynamically replaced at runtime.

0 3
40 followers
Viewed: 14 235 times
Version: 2.0
Category: Tutorials

CGridView keep focus on the control after filtering

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

You can find the reason why I wrote this article here.

5 0
10 followers
Viewed: 14 326 times
Version: 1.1
Category: How-tos

How to use BootstrapInterface

Created 5 years ago by Antonio Ramirez, updated 5 years ago by Antonio Ramirez.

Yii2 introduces the BootstrapInterface to ease our application initialization tasks, whether they are composer based or Application bootstrap (do not mistaken with Bootstrap CSS Framework) based tasks. On this article, I am going to explain how to use it on y...

2 0
3 followers
Viewed: 14 339 times
Version: 2.0
Category: How-tos

Save uploaded file with any filename characters

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

First of all this is a very common problem, for more details see this post http://www.yiiframework.com/forum/index.php/topic/52052-upload-file-with-any-charset/

1 0
3 followers
Viewed: 14 360 times
Version: 1.1
Category: How-tos

How to read HTML5 Multiple File Input from controller?

Created 5 years ago by Kartik V, updated a year ago by samdark.
0 2
40 followers
Viewed: 14 434 times
Version: 2.0
Category: How-tos