Wiki articles

Showing 61-80 of 165 items.

Easy way to redirect http:\\localhost\yii2-basic to http:\\localhost\yii2-basic\web\index.php

Created 10 years ago by Scott_Huang, updated 10 years ago by Scott_Huang.

First of all, install yii2 basic template according below link:

1 0
5 followers
Viewed: 80 052 times
Version: 2.0
Category: Tips

Aadhar Number Validator

Created 2 years ago by shiv.

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

2 1
1 follower
Viewed: 92 272 times
Version: 2.0
Category: Tips
Tags: validator

Remove Byte Order Mark (BOM) from files recursively

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

The problem was that all my web applications ran normally on localhost, but on server the Greek characters (or any other no-english characters) displayed with problems.

2 1
7 followers
Viewed: 34 915 times
Version: all
Category: How-tos

My Own Components Folder in Yii2

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

In Yii1 I used to have my own components under the components folder of the structure, now with namespacing this is a little bit different.

2 1
2 followers
Viewed: 21 836 times
Version: 2.0
Category: Tips

Handling tabular data loading and validation in Yii 2

Created 11 years ago by Kartik V, updated 9 years ago by 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: 61 366 times
Version: 2.0
Category: Tutorials

Using your own forked version of extensions with composer

Created 11 years ago by Kartik V, updated 9 years ago by Kartik V.

So you want to use a fork of any existing vendor extension with your Yii 2 install and use the fork, instead of original source. This does not need you to push any update or register your package on packagist.org. You are recommended to follow the approach below:

3 2
40 followers
Viewed: 24 629 times
Version: 2.0
Category: Tutorials

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

Created 12 years ago by Charles R. Portwood II, updated 11 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: 312 023 times
Version: 2.0
Category: Tutorials

Override/Eliminate Bootstrap CSS/JS for Yii 2.0 widgets

Created 11 years ago by Kartik V, updated 7 years ago by CeBe.

An example of customizing the Yii GridView is mentioned here. You can easily override Bootstrap or other styling defaults by changing the GridView default options.

4 2
39 followers
Viewed: 58 478 times
Version: 2.0
Category: How-tos

How to send email via Gmail SMTP in Yii2 framework

Created 3 years ago by Bartosz Wójcik, updated 3 years ago by Bartosz Wójcik.

One of my sites has been flooded with spam bots and as a result - Gmail gave my mailing domain a bad score and I couldn't send emails to @gmail addresses anymore, not from my email, not from my system, not from any of other domains and websites I host...

3 1
4 followers
Viewed: 97 812 times
Version: 2.0
Category: How-tos

How to add Schema.org markup to Yii2 pages

Created 4 years ago by Gabriel A. López López, updated 4 years ago by Gabriel A. López López.

https://schema.org is a markup system that allows to embed structured data on their web pages for use by search engines and other applications. Let's see how to add Schema.org to our pages on Yii2 based websites using JSON-LD.

2 0
3 followers
Viewed: 91 348 times
Version: 2.0
Category: How-tos

How to email error logs to developer on Yii2 apps

Created 4 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: 76 365 times
Version: 2.0
Category: How-tos
Tags: email, log

Interview Questions For YII2

Created 3 years ago by aayushmhu, updated a month ago by aayushmhu.

Hey Everyone, In this post I Just shared my Experience what most of interviewer ask in YII2 Interview.

2 0
2 followers
Viewed: 69 906 times
Version: 2.0
Category: Tips
Tags: interview

GridView show sum of columns in footer.

Created 2 years ago by shiv.

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

2 0
1 follower
Viewed: 95 836 times
Version: 2.0
Category: Tips

Create Bootstrap5 based Image carousel with thumbnails

Created a year ago by pravi, updated a year ago by pravi.

Use the following css styles for carousel to work as expected.

2 0
1 follower
Viewed: 104 665 times
Version: 2.0
Category: Tutorials

Use Single Login Session on All Your Yii2 Application/Repository Under Same Domain/Sub Domain

Created 8 months ago by aayushmhu, updated 8 months ago by aayushmhu.

There are multiple blog that shows how to use seperate login for yii2 application but in this article i will show you how to use a single login screen for all your YII2 Advanced, YII2 Basic, Application, It will also work when your domain on diffrent server or the same server.

2 0
1 follower
Viewed: 18 388 times
Version: 2.0
Category: Tutorials
2 0
3 followers
Viewed: 36 943 times
Version: 2.0
Category: How-tos

Export query content to excel through any of your controllers, also can set cssClass for header/odd/even rows, auto download

Created 9 years ago by Scott_Huang, updated 9 years ago by Scott_Huang.

To generate excel by query content, and download through any controller. You also can bind cssClass to header/odd/even rows. As for header, you even can set cssClass for each column.

$this->export2excel($excel_content,$excel_file);

in your controller.

2 0
2 followers
Viewed: 27 006 times
Version: 2.0
Category: Tutorials

Language Selector

Created 9 years ago by Programmer Thailand, updated 9 years ago by Programmer Thailand.

common\components\LanguageSelector.php

<?php
namespace common\components;

2 0
6 followers
Viewed: 17 515 times
Version: 2.0
Category: Tutorials

How to get SEO friendly URL using Model and new getUrl() function

Created 7 years ago by shiv, updated 7 years ago by shiv.

We all need SEO friendly URLs for our projects. its not always good to call route with params so we can generalise it for all models using a common function.

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

How to use BootstrapInterface

Created 11 years ago by Antonio Ramirez, updated 11 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: 20 876 times
Version: 2.0
Category: How-tos