Wiki

Articles in category "how-tos", sorted by ratingX
Displaying 191-200 of 355 result(s).

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,157 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.

CSV Export

Created 5 years ago by JohnPollardHow-tos5 comments – viewed 18,355 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

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,077 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,781 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,562 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.

How to Enhance a CGridView

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

Select2 Infinite Scroll With Remote Data in Yii

Created 3 years ago by amanationHow-tos5 comments – viewed 12,361 times – ( +4 / -1 ) – version 1.1
I was able to set up the infinite scroll of select2 in Yii. I am glad to share it with you. The demo and source code can be found here. However, select2 for Yii can be found here which uses a widget.

How to use Smarty renderer in Yii

Created 6 years ago by dongbetaHow-tos2 comments – viewed 20,059 times – ( +4 / -1 ) – version 1.1
At first, create a class named SmartyRenderer under application/components or any directory you want.
tags: smarty, renderer

Image resize on the fly

Created 5 years ago by TpoxaHow-tos4 comments – viewed 23,262 times – ( +4 / -1 ) – version 1.1
For example have folder with image resources which are public accessible
tags: yii, image-resize

How to use YiiBooster Bootstrap Gallery

Created 5 years ago by Antonio RamirezHow-tos4 comments – viewed 28,443 times – ( +4 / -1 ) – version 1.1
Since version 1.0.4, Yii developers can make use of the image gallery provided by Sebastian Tshan, a great javascript developer that has created some true gems like the jquery file upload plugin.