Articles tagged with "yii2", sorted by viewsX
Displaying 1-10 of 45 result(s).

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

Created about a year ago by Charles R. Portwood IITutorials5 comments – viewed 61,539 times – ( +8 / -7 ) – version 2.0
Creating a Simple CRUD App with Yii Framework 2 (Updated December 20th, 2013)
tags: yii2, tutorial, howto

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

Created 5 months ago by Kartik VTutorials18 comments – viewed 9,446 times – ( +29 / -4 ) – version 2.0
This wiki explains how to add calculated fields into your Yii Framework 2.0 gridview with filtering and sorting.

Upload files in Yii2 with MongoDb and GridFs

Created 5 months ago by edoardo849How-tos0 comments – viewed 5,227 times – ( +5 ) – version 2.0
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).

Automatic Parameter Binding to POST vars in Yii2

Created 8 months ago by aarondfrancisHow-tos2 comments – viewed 4,932 times – version 2.0
I wrote about this on my blog, but wanted to post it here too.
tags: yii2, controllers

Render a form in a Modal Popup using ajax

Created about a month ago by thiagoc7How-tos0 comments – viewed 3,276 times – ( +2 ) – version 2.0
Nowdays is very common webapps use this feature. With Yii2 this is very easy.
tags: yii2, AJAX, modal

How to implement cron in Yii 2

Created 2 months ago by hemcHow-tos7 comments – viewed 3,143 times – ( +6 ) – version 2.0
In advance template there is already a file yii. And there is no need to run it as php, it is Linux script.
tags: cron, yii2, console

How to use GridView with AJAX

Created 2 months ago by Antonio RamirezHow-tos0 comments – viewed 2,728 times – ( +2 ) – version 2.0
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.
tags: yii2, pjax, widget

How to send emails using SMTP

Created 2 months ago by robregonmHow-tos0 comments – viewed 2,544 times – ( +4 ) – version 2.0
Follow @robregonm
tags: yii2, email, mail, mailer, smtp

Auto-update denormalized attributes with MongoDb and Yii2

Created 4 months ago by edoardo849Tips0 comments – viewed 2,483 times – ( +1 ) – version 2.0
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.

MongoDb's embedded documents mapping for ActiveRecord in Yii2

Created 4 months ago by edoardo849How-tos0 comments – viewed 2,425 times – ( +1 ) – version 2.0
You are working with MongoDb and you have embedded documents in your collection that you want to easily map in your Model for CRUD operations.