Wiki articles

Showing 181-200 of 803 items.
2 0
1 follower
Viewed: 13 365 times
Version: 1.1
Category: How-tos

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 385 times
Version: 2.0
Category: Tips
Tags: null, REST, XML

How to make use of a fragment cache

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

How to use Flash, Zend AMF and Yii Framework

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

This is a simple demo how to use Zend_AMF with Yii.

3 0
6 followers
Viewed: 13 449 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 496 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: 13 496 times
Version: 2.0
Category: Tutorials

Google style sign out of all other sessions

Created 5 years ago by Rohit Suthar, updated 4 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 499 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: 13 556 times
Version: 1.1
Category: How-tos

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 566 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: 13 603 times
Version: 1.1
Category: Tutorials

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 609 times
Version: 1.1
Category: How-tos

How to organize Design "things" in Yii 2 (themes and layout)

Created a year ago by s.oli, updated a year ago by samdark.

Sometimes the App needs a nicer look & feel, so its necessary to organize the assets for this and Yii can help a lot to make it easy. In this article I provide tips for handling multiple "Designs". I use these three features:

1 0
2 followers
Viewed: 13 624 times
Version: 2.0
Category: Tips

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 767 times
Version: 1.1
Category: How-tos

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: 13 775 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 790 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: 13 816 times
Version: 2.0
Category: How-tos

Batch Gridview data ajax send splitted in chunks displaying bootstrap Progress bar

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

The scenario in which this wiki can be useful is when you have to send an (huge) array of model ids and perform a time consuming computation with it like linking every model to other models. The idea is to split the array into smaller arrays and perform sequential ajax requests, showing the calculation progress using a [Bootstrap Progress bar](https://www.yiiframework.com/extension/yiisoft/yii2-bo...

8 0
3 followers
Viewed: 13 834 times
Version: 2.0
Category: Tutorials

Turn Web HTML Into Newsletter

Created 6 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: 13 846 times
Version: 1.1
Category: How-tos

How to sum (Update) of all input button price value using jquery

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

Hi Friends, In this tutorial, how to update the sum of all the button data-price value using jquery, Just Follow three step and it's work easily.I hope It may be some helpful to others. See Image

0 0
2 followers
Viewed: 13 870 times
Version: all
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: 13 927 times
Version: 2.0
Category: How-tos