Wiki articles tagged with "yii2"

Showing 1-20 of 86 items.

Creating a Simple CRUD App With Yii2 (Revised 12/20/2013)

Created 13 years ago by Charles R. Portwood II Charles R. Portwood II, updated 12 years ago by Vivek Vivek.

By popular demand, today I will be revisiting my previous Yii Framework 2 Getting Started Guide and updating it with what is currently available in the Yii Framework 2 Repository. Provide here is an super simple example CRUD application that will help you get started using the framework.

7 6
21 followers
Viewed: 321 627 times
Version: 2.0
Category: Tutorials

Automatic Parameter Binding to POST vars in Yii2

Created 12 years ago by aarondfrancis aarondfrancis, updated 12 years ago by YiiJeka YiiJeka.

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

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

Filter & Sort by calculated/related fields in GridView Yii 2.0

Created 12 years ago by Kartik V Kartik V, updated 7 years ago by softark softark.

This wiki explains how to add calculated fields into your Yii Framework 2.0 gridview with filtering and sorting.

14 3
64 followers
Viewed: 293 139 times
Version: 2.0
Category: Tutorials

Upload files in Yii2 with MongoDb and GridFs

Created 12 years ago by edoardo849 edoardo849, updated 6 years ago by pceuropa pceuropa.

Uploading files in a webapp can be extremely tricky and sometimes the quickest way to do it is to store the file directly in the webserver or into a DNS (like Amazon S3) and then to save the link and the metadata inside a table in the DB. The thing is that you'll have to deal with file permissions, server storage, file management and so on (which is perfectly fine, by the way).

6 0
6 followers
Viewed: 43 979 times
Version: 2.0
Category: How-tos

MongoDb's embedded documents mapping for ActiveRecord in Yii2

Created 12 years ago by edoardo849 edoardo849, updated 12 years ago by CeBe CeBe.

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

4 0
7 followers
Viewed: 33 404 times
Version: 2.0
Category: How-tos

Auto-update denormalized attributes with MongoDb and Yii2

Created 12 years ago by edoardo849 edoardo849, updated 12 years ago by CeBe CeBe.

You have different collections in MongoDb with de-normalized attributes. As you may know, due to its not-join nature, MongoDb tends to encourage repetition of the same value in different collections (de-normalization). In this MongoDb is opposed to a more SQL-like approach where you usually reference only the ID of the value with a foreign key.

1 0
3 followers
Viewed: 22 515 times
Version: 2.0
Category: Tips

How to implement cron in Yii 2

Created 12 years ago by hemc hemc, updated 12 years ago by hemc 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: 108 163 times
Version: 2.0
Category: How-tos
Tags: console, cron, yii2

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

Created 12 years ago by realtebo realtebo, updated 11 years ago by realtebo 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: 32 503 times
Version: 2.0
Category: Tutorials

How to use BootstrapInterface

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

Displaying, Sorting and Filtering Model Relations on a GridView

Created 12 years ago by Antonio Ramirez Antonio Ramirez, updated 12 years ago by Antonio Ramirez 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.

49 0
37 followers
Viewed: 369 506 times
Version: 2.0
Category: How-tos

Escape from Default's Yii2 Delete Confirm Box

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

How to use GridView with AJAX

Created 12 years ago by Antonio Ramirez Antonio Ramirez, updated 8 years ago by CeBe 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.

10 0
15 followers
Viewed: 94 610 times
Version: 2.0
Category: How-tos
Tags: pjax, widget, yii2

How to send emails using SMTP

Created 12 years ago by robregonm robregonm, updated 7 years ago by Wade Shuler Wade Shuler.
6 0
11 followers
Viewed: 147 831 times
Version: 2.0
Category: How-tos
2 0
2 followers
Viewed: 37 843 times
Version: 2.0
Category: How-tos

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

Created 12 years ago by Kartik V Kartik V, updated 12 years ago by Kartik V 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: 56 582 times
Version: 2.0
Category: Tutorials
0 2
40 followers
Viewed: 25 941 times
Version: 2.0
Category: How-tos

Yii2 default values for Index data Provider

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

Guys,

2 0
5 followers
Viewed: 34 909 times
Version: 2.0
Category: Tips

Activating Bootstrap 3 Tooltips & Popover for your Yii Site.

Created 12 years ago by Kartik V Kartik V, updated 8 years ago by alrazi 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).

3 3
48 followers
Viewed: 71 792 times
Version: 2.0
Category: Tips

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

Created 12 years ago by Kartik V Kartik V, updated 12 years ago by Kartik V 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:

1 2
41 followers
Viewed: 48 634 times
Version: 2.0
Category: FAQs

Handling tabular data loading and validation in Yii 2

Created 12 years ago by Kartik V Kartik V, updated 10 years ago by Said Bakr Said Bakr.

The only differences in Yii 2 is that its much simpler due to available functions in the Model class for loading and validating models.

3 2
51 followers
Viewed: 66 475 times
Version: 2.0
Category: Tutorials