Wiki articles

Showing 101-120 of 164 items.

Yii2 Report Grid

Created 6 years ago by Chris Backhouse, updated 5 years ago by Chris Backhouse.

There are some very advanced grids in the Yii2 community, specifically Kartik's amazing gridview extensions but they all designed for interactive screen use.

6 0
7 followers
Viewed: 33 320 times
Version: 2.0
Category: Tips

Remove Byte Order Mark (BOM) from files recursively

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

The problem was that all my web applications ran normally on localhost, but on server the Greek characters (or any other no-english characters) displayed with problems.

2 1
7 followers
Viewed: 33 124 times
Version: all
Category: How-tos

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

Created 5 years ago by toaster, updated 5 years 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
2 followers
Viewed: 32 956 times
Version: 2.0
Category: Tutorials

Cómo enviar emails usando SMTP

Created 9 years ago by robregonm, updated 9 years ago by robregonm.
2 0
2 followers
Viewed: 32 650 times
Version: 2.0
Category: How-tos

Yii2 and Pdf files with Mpdf

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

I am still new to composer and packagist, so I want to share how I am creating the pdf files because for me was not as simple as it should be.

3 0
8 followers
Viewed: 31 934 times
Version: 2.0
Category: How-tos

Yii2 default values for Index data Provider

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

Guys,

2 0
5 followers
Viewed: 31 522 times
Version: 2.0
Category: Tips

Managing different Bootstrap form layouts with yii2-field-range extension.

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

This wiki will explain how you can use the Field range extension with multiple Bootstrap form layouts (vertical or horizontal). You maybe aware, that the yii2-field-range extension enables you to easily setup ActiveField range fields with Bootstrap styling. You basically can setup two attributes joined together like a single field with combined validation error block.

0 0
37 followers
Viewed: 31 491 times
Version: 2.0
Category: How-tos

Moving the vendor directory for multiple projects

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

This How-To is useful if you are planning to move the Yii vendor directory outside the default location.

5 0
5 followers
Viewed: 30 785 times
Version: 2.0
Category: How-tos

YII2 : simple language Switcher Widget

Created 8 years ago by phunsanit, updated 8 years ago by phunsanit.
  1. create file common\components\languageSwitcher.php
1 0
5 followers
Viewed: 30 728 times
Version: 2.0
Category: Tutorials

Simple revealing and hiding the password in the password field

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

There are numerous usability problems:

5 0
4 followers
Viewed: 29 388 times
Version: 2.0
Category: How-tos

Key web server settings after installing a fresh Yii 2 basic or advanced app

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

So, you have installed a brand new Yii 2 app (basic) or (advanced). Here are a few tips for Apache web server users to get things running more secure and better with your yii2 app.

3 0
46 followers
Viewed: 28 941 times
Version: 2.0
Category: Tips

Boost composer-asset-plugin update speed

Created 7 years ago by schmunk, updated 7 years ago by samdark.

If you're using a lot of bower and npm assets with Yii 2.0 you might encounter long running composer update tasks.

6 0
6 followers
Viewed: 28 198 times
Version: 2.0
Category: Tips

MongoDb's embedded documents mapping for ActiveRecord in Yii2

Created 10 years ago by edoardo849, updated 9 years ago by CeBe.

suppose to have in Mongo a collection "user" like:

4 0
7 followers
Viewed: 27 977 times
Version: 2.0
Category: How-tos

Installare Yii 2.0.* usando XAMPP su Windows in versione portabile

Created 9 years ago by realtebo, updated 8 years ago by realtebo.

Personalmente trovo che la versione "portable" sia molto più semplice da aggiornare, ed io tengo sempre costantemente aggiornato TUTTO il parco software relativo al mio webserver.

0 0
2 followers
Viewed: 27 838 times
Version: 2.0
Category: Tutorials

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

Created 5 years ago by s.oli, updated 5 years 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: 27 652 times
Version: 2.0
Category: Tips

Model validation for field ranges using yii2-field-range extension

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

The yii2-field-range extension enables you to easily setup ActiveField range fields with Bootstrap styling. You basically can setup two attributes joined together like a single field with combined validation error block.

0 0
37 followers
Viewed: 27 552 times
Version: 2.0
Category: Tips

How to get SEO friendly URL using Model and new getUrl() function

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

We all need SEO friendly URLs for our projects. its not always good to call route with params so we can generalise it for all models using a common function.

2 0
1 follower
Viewed: 26 297 times
Version: 2.0
Category: How-tos

Automatic Parameter Binding to POST vars in Yii2

Created 10 years ago by aarondfrancis, updated 9 years ago by YiiJeka.

I wrote about this on my blog, but wanted to post it here too.

0 0
4 followers
Viewed: 25 660 times
Version: 2.0
Category: How-tos

How to use yii2-authclient to communicate with Twitter using Single Access Token

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

It is quite simple, but I am sure this small tutorial will help more than one of you out there :)

2 0
4 followers
Viewed: 25 469 times
Version: 2.0
Category: How-tos

Export query content to excel through any of your controllers, also can set cssClass for header/odd/even rows, auto download

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

To generate excel by query content, and download through any controller. You also can bind cssClass to header/odd/even rows. As for header, you even can set cssClass for each column.

$this->export2excel($excel_content,$excel_file);

in your controller.

2 0
2 followers
Viewed: 25 415 times
Version: 2.0
Category: Tutorials