Wiki articles

Showing 1-20 of 162 items.

How to email error logs to developer on Yii2 apps

Created 2 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: 39 184 times
Version: 2.0
Category: How-tos
Tags: email, log

How to redirect all emails to one inbox on Yii2 applications

Created 2 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: 42 584 times
Version: 2.0
Category: How-tos

Aadhar Number Validator

Created 2 months 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: 4 340 times
Version: 2.0
Category: Tips
Tags: validator

Convert JSON data to html table for display on page

Created 2 months ago by shiv.

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

0 0
1 follower
Viewed: 4 439 times
Version: all
Category: Tips
Tags: html, JSON

GridView show sum of columns in footer.

Created 2 months ago by shiv.

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

1 0
1 follower
Viewed: 4 454 times
Version: 2.0
Category: Tips

How to Create and Use Validator Using Regular expressions

Created 20 days 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

2 0
1 follower
Viewed: 1 488 times
Version: 2.0
Category: How-tos

Update and Delete buttons on Breadcrumb

Created 4 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: 52 508 times
Version: 2.0
Category: Tips

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

Created 2 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: 37 379 times
Version: 2.0
Category: How-tos

Auto-update denormalized attributes with MongoDb and Yii2

Created 8 years ago by edoardo849, updated 8 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: 16 400 times
Version: 2.0
Category: Tips

MongoDb's embedded documents mapping for ActiveRecord in Yii2

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

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

4 0
7 followers
Viewed: 26 163 times
Version: 2.0
Category: How-tos
10 0
15 followers
Viewed: 39 595 times
Version: all
Category: Others

Tunneling using SSH in a limited enviroment

Created 9 years ago by nineinchnick, updated 8 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: 16 606 times
Version: all
Category: Others

Integrating ZF2 into Yii - use case demonstrated

Created 9 years ago by Boaz, updated 8 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: 12 899 times
Version: 2.0
Category: How-tos

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

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

How to implement cron in Yii 2

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

Automatic Parameter Binding to POST vars in Yii2

Created 9 years ago by aarondfrancis, updated 8 years ago by YiiJeka.

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

0 0
4 followers
Viewed: 23 845 times
Version: 2.0
Category: How-tos

How to use BootstrapInterface

Created 8 years ago by Antonio Ramirez, updated 8 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: 18 327 times
Version: 2.0
Category: How-tos

Displaying, Sorting and Filtering Model Relations on a GridView

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

47 0
37 followers
Viewed: 313 714 times
Version: 2.0
Category: How-tos

Cómo enviar emails usando SMTP

Created 8 years ago by robregonm, updated 8 years ago by robregonm.
2 0
2 followers
Viewed: 29 231 times
Version: 2.0
Category: How-tos

Yii2 default values for Index data Provider

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

Guys,

2 0
5 followers
Viewed: 30 343 times
Version: 2.0
Category: Tips