Wiki articles

Showing 201-220 of 804 items.

Overcoming removal of client helpers (e.g. ajaxLink) and ClientScript in Yii 2.0

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

Alternatively, inline assets (JS/CSS) can be registered at runtime from within the View. For example you can clearly simulate the ajaxLink feature using a inline javascript. Its however recommended if you can merge where possible, client code (JS/CSS) into separate JS/CSS files and loaded through the AssetBundle. Note there is no more need of a CClientScript anymore:

0 2
40 followers
Viewed: 35 693 times
Version: 2.0
Category: FAQs

Activating Bootstrap 3 Tooltips & Popover for your Yii Site.

Created 6 years ago by Kartik V, updated 2 years ago by alrazi.

Step 1: Initialize the Bootstrap Tooltip & Popover plugins in your view layout file @web\views\layouts\main.php. Add this to somewhere in the beginning head section (after you have loaded the Jquery using your AppAsset or something similar).

2 2
47 followers
Viewed: 55 242 times
Version: 2.0
Category: Tips

Yii2 default values for Index data Provider

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

Guys,

2 0
5 followers
Viewed: 26 344 times
Version: 2.0
Category: Tips

How to read HTML5 Multiple File Input from controller?

Created 6 years ago by Kartik V, updated a year ago by samdark.
0 2
40 followers
Viewed: 14 787 times
Version: 2.0
Category: How-tos

What to do when composer fails to update your vendor packages?

Created 6 years ago by Kartik V, updated 6 years ago by Kartik V.
  • Running a composer update does not fetch any new packages (even though the source is updated)
  • A specific vendor package never gets updated
  • Facing on and off problems when fetching packages while performing composer update.
  • You ran a composer update earlier, but it was partially done, before you lost network connectivity, and you cannot refresh packages anymore.
0 4
36 followers
Viewed: 31 894 times
Version: 2.0
Category: Tutorials

Open bootstrap modal and load content via Ajax

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

My goal here is to Open bootstrap modal and load ANY content using ajax response.

1 0
2 followers
Viewed: 55 226 times
Version: 1.1
Category: How-tos

Update CGridview row separately using ajax request

Created 6 years ago by Kostas Apazidis (KonApaz), updated 6 years ago by Kostas Apazidis (KonApaz).

There are cases you want to update a record on CGridview directly

5 0
8 followers
Viewed: 20 885 times
Version: 1.1
Category: How-tos

Cómo enviar emails usando SMTP

Created 6 years ago by robregonm, updated 6 years ago by robregonm.
2 0
2 followers
Viewed: 19 439 times
Version: 2.0
Category: How-tos

How to send emails using SMTP

Created 6 years ago by robregonm, updated a year ago by Wade Shuler.
5 0
10 followers
Viewed: 102 397 times
Version: 2.0
Category: How-tos

How to use GridView with AJAX

Created 6 years ago by Antonio Ramirez, updated 2 years ago by CeBe.

With the adoption of PJax on Yii2 things  have change quite a bit with GridView when it comes to work with them in AJAX mode. It will probably be confusing at the beginning, but then you will soon realize how powerful the new approach is.

9 0
15 followers
Viewed: 74 152 times
Version: 2.0
Category: How-tos
Tags: pjax, widget, yii2

Escape from Default's Yii2 Delete Confirm Box

Created 6 years ago by Antonio Ramirez, updated 4 years ago by Cozumel.

If you started playing with Yii2's new GridView, you will soon realize that some things have improved quite a lot, but I am sure its going to be a bit confusing at first glance when you try to modify certain javascript behaviors like for example, its delete confirmation dialog box.

4 1
16 followers
Viewed: 36 577 times
Version: 2.0
Category: How-tos

Displaying, Sorting and Filtering Model Relations on a GridView

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

One of the things you will find tricky to implement is the the sorting and filtering of a GridView's column that displays related model data.

33 0
32 followers
Viewed: 269 398 times
Version: 2.0
Category: How-tos

How to use BootstrapInterface

Created 6 years ago by Antonio Ramirez, updated 6 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: 14 646 times
Version: 2.0
Category: How-tos

Advanced CGridview issues - custom button using php and html

Created 6 years ago by Kostas Apazidis (KonApaz), updated 6 years ago by Kostas Apazidis (KonApaz).

This wiki shows about how to make a custom column or how to pass php-Yii-html code in CButtonColumn (as a button)

1 0
2 followers
Viewed: 10 796 times
Version: 1.1
Category: How-tos

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

Created 6 years ago by realtebo, updated 5 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: 20 325 times
Version: 2.0
Category: Tutorials

How to avoid a database update if the ActiveRecord was not modified

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

The classic Yii way for doing an update action is as follows:

1 0
3 followers
Viewed: 18 678 times
Version: 1.1
Category: How-tos

Update Gridview with Dropdown Selection

Created 6 years ago by lgastmans, updated 6 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: 14 042 times
Version: 1.1
Category: Tips

Login Form With email or Whatever

Created 6 years ago by nabil abdouali, updated 6 years ago by nabil abdouali.

Here is my solution to login with email or anything else This update works with database mysql You must generate the user model with GII

1 2
2 followers
Viewed: 24 619 times
Version: 1.1
Category: How-tos

How to implement cron in Yii 2

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

In advance template there is already a file yii. And there is no need to run it as php, it is Linux script.

3 0
13 followers
Viewed: 79 833 times
Version: 2.0
Category: How-tos
Tags: console, cron, yii2

Select2 Infinite Scroll With Remote Data in Yii

Created 6 years ago by IsraelAma, updated 6 years ago by CeBe.

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.

3 0
5 followers
Viewed: 15 856 times
Version: 1.1
Category: How-tos