Wiki

Sorted by ratingX
Displaying 441-450 of 786 result(s).

A Single Page with a List and a Detail

Created about a year ago by softarkHow-tos1 comment – viewed 8,637 times – ( +4 / -1 ) – version 2.0
The CRUD generator of Gii has done a wonderful job for you, and you already have a list of items in the "index" page and a detailed view of a specified item in the "view" page.
tags: gridview, detail, ajax

Yii2: How to create/develop a new extension using Composer locally without version control or Git

Created about a year ago by Wade ShulerHow-tos0 comments – viewed 10,230 times – ( +4 / -1 ) – version 2.0
Using a version control system, like Git, is nice. However, when building an extension from scratch and loading it via Composer, it adds a lot of pain in the butt steps. You have to commit your changes, update composer to pull them over, then notice there is an error, fix, commit, update. repeat.. I don't want all my baby steps under Git. Sure, I could edit my commit history, but c'mon. Just let me code! I will put it under version control once I get a baseline created. This guide will show you how to setup your composer.json to load a local directory (everything inside, live). You make a change, save the file, refresh the page, boom.

List with multiple checkbox

Created 7 years ago by matkazTutorials3 comments – viewed 33,289 times – ( +4 / -1 ) – version 1.1
It is a common case coders often come accross. For example the purpose of these checkbox is to mark records to be deleted

CSV Export

Created 5 years ago by JohnPollardHow-tos5 comments – viewed 18,378 times – ( +4 / -1 ) – version 1.1
I needed a csv export function for my cgridview and I wanted to export the entire result set of the sorted and filtered cgridview the user was viewing via ajax.
tags: csv, export

Access log output from unit tests

Created 5 years ago by MikeTips2 comments – viewed 8,562 times – ( +4 / -1 ) – version 1.1
Say, you want to write a test for a component which provides a caching feature. How would you know, that some method of your component returns a cached result? With the solution described here you can inspect all log outputs. So you could search the logs for accesses to the DB to really make sure, that the result was served from cache.

Update a part of content using AJAX when select a GridView row

Created 4 years ago by Kostas Apazidis (KonApaz)How-tos2 comments – viewed 21,120 times – ( +4 / -1 ) – version 1.1
Suppose you want to refresh a form or any content when a single row of CGridView is selected

ClientValidation for files (modern browsers)

Created 4 years ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 10,805 times – ( +4 / -1 ) – version 1.1
There are cases that you want to validate the file format, size, extension etc but how to do that without submit the form ?

Simple Multiple Environment Setup with Default Yii Installation

Created 3 years ago by Ibrar TuriHow-tos2 comments – viewed 8,590 times – ( +4 / -1 ) – version 1.1
After installing Yii basic application on our systems, most of the time we want to have multiple environment such as local, dev and live setup. Most of the times when we want to make changes to configuration file, we have to over-write configurations file for each environment.

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

Created 5 years ago by sirin kTips0 comments – viewed 8,122 times – ( +4 / -1 ) – version 1.1
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 with this situation.But if you want to forcefully logout the user from your application if he is logged out from his facebook account means you can try this example.This example uses periodic ajax calls to facebook's graph api to check whether the user is logged in or not.
tags: facebook, user

How to Enhance a CGridView

Created 3 years ago by bluyellHow-tos5 comments – viewed 6,560 times – ( +4 / -1 ) – version 1.1
by: Christian Salazar (bluyell, @salazachris74, christiansalazarh@gmail.com)