Wiki articles

Showing 41-60 of 142 items.

Update and Delete buttons on Breadcrumb

Created 6 months ago by Daniel.

The definition of breadcrumbs according to its documentation is as follow: Breadcrumbs displays a list of links indicating the position of the current page in the whole site hierarchy.

0 0
1 follower
Viewed: 12 574 times
Version: 2.0
Category: Tips

How to use BootstrapInterface

Created 4 years ago by Antonio Ramirez, updated 4 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: 12 668 times
Version: 2.0
Category: How-tos

How to read HTML5 Multiple File Input from controller?

Created 4 years ago by Kartik V, updated 2 months ago by samdark.
0 2
40 followers
Viewed: 12 845 times
Version: 2.0
Category: How-tos

Before Query Example : Soft Delete

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

This is how i do before query on Yii 2.0

0 0
3 followers
Viewed: 12 943 times
Version: 2.0
Category: How-tos

Building a search GET request with scenarios ; calling a SearchModel from URLs...

Created 3 years ago by Louis Gac, updated 3 years ago by Louis Gac.

Search Models are a very elegant and powerful way to build an Active Data Provider. If you use them a lot, you'll quickly need to use scenarios, which will lead you to a very DRY Controller code.

0 0
2 followers
Viewed: 13 154 times
Version: 2.0
Category: Tips

Simple revealing and hiding the password in the password field

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

There are numerous usability problems:

2 0
4 followers
Viewed: 13 772 times
Version: 2.0
Category: How-tos

My Own Components Folder in Yii2

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

In Yii1 I used to have my own components under the components folder of the structure, now with namespacing this is a little bit different.

2 1
2 followers
Viewed: 13 973 times
Version: 2.0
Category: Tips

A Single Page with a List and a Detail

Created 2 years ago by softark, updated 2 years ago by Patrick Jones.

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.

2 0
4 followers
Viewed: 14 224 times
Version: 2.0
Category: How-tos

Using the yii2-datecontrol extension along with yii2-detail-view widget

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

The yii2-datecontrol extension allows you to control separate date formats for display and saving for form inputs.

1 0
37 followers
Viewed: 14 265 times
Version: 2.0
Category: How-tos

When to use Active Record

Created 7 months ago by samdark.

When to use Active Record is a common question among developers, Yii and overall.

9 0
3 followers
Viewed: 14 269 times
Version: all
Category: FAQs

Profiling using XDebug

Created 5 years ago by le_top, updated 3 years ago by le_top.

A short explication on how to extract profile information for PHP on your server using XDebug and KCacheGrind or WinCacheGrind.

3 0
3 followers
Viewed: 14 368 times
Version: all
Category: How-tos

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

Created a year ago by shiv, updated a year 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: 14 492 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 3 years ago by Scott_Huang, updated 3 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: 14 509 times
Version: 2.0
Category: Tutorials

Cómo enviar emails usando SMTP

Created 4 years ago by robregonm, updated 4 years ago by robregonm.
2 0
2 followers
Viewed: 15 072 times
Version: 2.0
Category: How-tos

Using your own forked version of extensions with composer

Created 4 years ago by Kartik V, updated 3 years ago by Kartik V.

So you want to use a fork of any existing vendor extension with your Yii 2 install and use the fork, instead of original source. This does not need you to push any update or register your package on packagist.org. You are recommended to follow the approach below:

3 2
40 followers
Viewed: 15 212 times
Version: 2.0
Category: Tutorials

Managing a star rating with the StarRating widget in Yii 2

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

In Yii 1.x, there was a built in widget CStarRating based on the jquery star rating plugin. There exists no prebuilt solution in Yii2, however the same concepts can be extended using any jquery plugin.

1 3
41 followers
Viewed: 15 608 times
Version: 2.0
Category: How-tos

Role Management

Created 4 years ago by Dency G B, updated 4 years ago by Dency G B.

Implementing a role based access control is a very easy process and you can even load your roles from the database if you want.

0 0
5 followers
Viewed: 15 854 times
Version: 2.0
Category: How-tos
Tags: rbac, yii2

Configuring PhpStorm IDE for Yii 2

Created 11 months ago by CeBe, updated 10 months ago by CeBe.

There are a few settings and plugins that can enhance the development experience with Yii in PHPStorm or IntelliJ IDEA. This article explains how to get the most out of your IDE.

10 0
6 followers
Viewed: 17 292 times
Version: 2.0
Category: Tips

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

Created 4 years ago by realtebo, updated 3 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: 17 538 times
Version: 2.0
Category: Tutorials

Automatic Parameter Binding to POST vars in Yii2

Created 5 years ago by aarondfrancis, updated 4 years ago by YiiJeka.

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

0 0
4 followers
Viewed: 17 680 times
Version: 2.0
Category: How-tos