Wiki articles

Showing 1-20 of 164 items.

How to email error logs to developer on Yii2 apps

Created 3 years ago by Gabriel A. López López.

Logging is a very important feature of the application. It let's you know what is happening in every moment. By default, Yii2 basic and advanced application have just a \yii\log\FileTarget target configured.

2 0
4 followers
Viewed: 59 937 times
Version: 2.0
Category: How-tos
Tags: email, log

How to redirect all emails to one inbox on Yii2 applications

Created 3 years ago by Gabriel A. López López.

\yii\mail\BaseMailer::useFileTransport is a great tool. If you activate it, all emails sent trough this mailer will be saved (by default) on @runtime/mail instead of being sent, allowing the devs to inspect thre result.

6 0
4 followers
Viewed: 102 097 times
Version: 2.0
Category: How-tos

Aadhar Number Validator

Created a year ago by shiv.

In India have Aadhar number an we may need to valid it a input. So I created a validator for yii2

1 1
1 follower
Viewed: 65 796 times
Version: 2.0
Category: Tips
Tags: validator

Convert JSON data to html table for display on page

Created a year ago by shiv.

I have a calls which help me display json directly in html table.

0 0
1 follower
Viewed: 67 477 times
Version: all
Category: Tips
Tags: html, JSON

GridView show sum of columns in footer.

Created a year ago by shiv.

GridView show sum of columns in footer `PHP use yii\grid\DataColumn;

1 0
1 follower
Viewed: 67 207 times
Version: 2.0
Category: Tips

How to Create and Use Validator Using Regular expressions

Created a year ago by aayushmhu.

There are Multiple Ways to Create a Validator But here we use Regular Expression or JavaScript Regular Expression or RegExp for Creation Validators. In this article, we will see the most Frequently Used Expression

4 0
1 follower
Viewed: 71 801 times
Version: 2.0
Category: How-tos

Update and Delete buttons on Breadcrumb

Created 5 years 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: 53 647 times
Version: 2.0
Category: Tips

How to add Open Graph and Twitter Card tags to Yii2 website.

Created 3 years ago by Gabriel A. López López.

OpenGraph and Twitter Cards are two metadata sets that allow to describe web pages and make it more understandable for Facebook and Twitter respectively.

2 0
3 followers
Viewed: 58 230 times
Version: 2.0
Category: How-tos

Auto-update denormalized attributes with MongoDb and Yii2

Created 10 years ago by edoardo849, updated 9 years ago by 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: 17 534 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
10 0
15 followers
Viewed: 41 059 times
Version: all
Category: Others

Tunneling using SSH in a limited enviroment

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

This tutorial describes how to connect to a remote service via tunnel when only most basic software is available on the remote server. It is not directly related to Yii. It could be hovewer useful for web developers working with shared hosting sites with limited access.

1 0
3 followers
Viewed: 18 656 times
Version: all
Category: Others

Integrating ZF2 into Yii - use case demonstrated

Created 10 years ago by Boaz, updated 9 years ago by Boaz.

I needed to use a class from ZF2 in my Yii project. I've read probably all there is about this subject and still I needed lots of trial & errors to get it working, probably due to my lack of experience working with namepsaces and ZF2 in general. Also, the resources on the web are all partial, at best. Most simply refer to ZF1 where things are technically different. When I got it all working I de...

4 0
6 followers
Viewed: 13 854 times
Version: 2.0
Category: How-tos

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

Created 10 years ago by Charles R. Portwood II, updated 9 years ago by 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: 303 759 times
Version: 2.0
Category: Tutorials

How to implement cron in Yii 2

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

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 661 times
Version: 2.0
Category: How-tos

How to use BootstrapInterface

Created 9 years ago by Antonio Ramirez, updated 9 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: 19 567 times
Version: 2.0
Category: How-tos

Displaying, Sorting and Filtering Model Relations on a GridView

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

48 0
37 followers
Viewed: 325 827 times
Version: 2.0
Category: How-tos

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 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