Wiki articles

Showing 41-60 of 165 items.

How to sum (Update) of all input button price value using jquery

Created 11 years ago by Ankit Modi Ankit Modi, updated 11 years ago by Ankit Modi Ankit Modi.

Hi Friends, In this tutorial, how to update the sum of all the button data-price value using jquery, Just Follow three step and it's work easily.I hope It may be some helpful to others. See Image

0 0
2 followers
Viewed: 22 653 times
Version: all
Category: How-tos

Role Management

Created 11 years ago by Dency G B Dency G B, updated 11 years ago by Dency G B Dency G B.

Implementing a role based access control is a very easy process and you can even load your roles from the database if you want.

0 0
5 followers
Viewed: 26 782 times
Version: 2.0
Category: How-tos
Tags: rbac, yii2

Getting information from the current locale

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

Yii 2.0 comes with a formatter component to format dates, numbers, and other values for international users according to their locale. This is very useful for displaying data. When working with incoming data or when using enhanced input methods like the [MaskedInput widget](https://www.yiiframework.com/doc/api/2.0/yii-widgets-maskedinp...

5 0
2 followers
Viewed: 23 940 times
Version: 2.0
Category: How-tos

embedded javascript block in your view with IDE checking or intellisense

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

this is my way for embed js code block in view file:

2 0
3 followers
Viewed: 15 053 times
Version: 2.0
Category: Tips

Using Nginx and Apache2 in separate distributed servers (ie, Amazon EC2 instances)

Created 12 years ago by Luis Lobo Borobia Luis Lobo Borobia, updated 8 years ago by Luis Lobo Borobia Luis Lobo Borobia.

We are running one frontend running NGINX and several app servers running Apache2. There are several issues we have come across but right now I'll be documenting one of them. I'll be completing this article when I get more time.

2 0
2 followers
Viewed: 16 544 times
Version: all
Category: Tips

Events registration examples

Created 6 years ago by minitia minitia, updated 6 years ago by minitia minitia.

Register an event handler at Object-Level

2 0
2 followers
Viewed: 64 659 times
Version: 2.0
Category: How-tos
Tags: events, yii2

Move sources to src

Created 6 years ago by samdark samdark, updated 6 years ago by samdark samdark.

Yii 3 and many Yii 2 package sources are contained within src directory which is convenient since you have less directories to check.

11 0
5 followers
Viewed: 16 822 times
Version: 2.0
Category: How-tos

Change default date format in Oracle

Created 6 years ago by lenovo lenovo, updated 6 years ago by samdark samdark.

Default date format in Oracle is DD-MON-RR (25-JAN-18). With that output, we can't using date formatting.

0 0
2 followers
Viewed: 79 702 times
Version: 2.0
Category: How-tos
Tags: database
7 0
4 followers
Viewed: 352 611 times
Version: 2.0
Category: Tutorials

Simple Way to Upload and Save File

Created 11 years ago by Misbahul D Munir Misbahul D Munir, updated 11 years ago by Misbahul D Munir Misbahul D Munir.

This tutorial need extension mdmsoft/yii2-upload-file. Follow the intruction to install. After installation done, create controller and action

0 0
4 followers
Viewed: 41 663 times
Version: 2.0
Category: Tutorials

UUID instead of an auto-increment integer for ID with Active Record

Created 5 years ago by grigori grigori, updated 5 years ago by samdark samdark.

I have an API. It's built with a RESTful extension over Active Record, and some endpoints provide PUT methods to upload files. By a REST design we create an entity with POST /video first, and then upload a video file with PUT /video/{id}/data.

5 0
4 followers
Viewed: 70 712 times
Version: 2.0
Category: How-tos
4 0
4 followers
Viewed: 61 745 times
Version: 2.0
Category: How-tos

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

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

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

1 0
5 followers
Viewed: 82 827 times
Version: 2.0
Category: Tips
4 0
3 followers
Viewed: 103 840 times
Version: 2.0
Category: Tutorials

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

Created 5 years ago by Gabriel A. López López 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: 97 907 times
Version: 2.0
Category: How-tos

How to email error logs to developer on Yii2 apps

Created 5 years ago by Gabriel A. López López 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: 84 390 times
Version: 2.0
Category: How-tos
Tags: email, log

Running applications with Docker

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

When building PHP web applications you usually have to take care about defining and providing a consistent development and production environment for your team. This includes your application packages, PHP-extensions, database servers and often further components such as a mail server or workers.

4 0
8 followers
Viewed: 53 306 times
Version: 2.0
Category: Tutorials

YII2 : simple language Switcher Widget

Created 10 years ago by phunsanit phunsanit, updated 10 years ago by phunsanit phunsanit.
  1. create file common\components\languageSwitcher.php
1 0
5 followers
Viewed: 33 166 times
Version: 2.0
Category: Tutorials

Single PHP entry point with Nginx

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

In this article I will show you how to slightly increase application security, by exploiting the fact that Yii implements the Front Controller Pattern.

4 0
3 followers
Viewed: 20 780 times
Version: all
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 10 years ago by Scott_Huang Scott_Huang, updated 10 years ago by Scott_Huang 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 871 times
Version: 2.0
Category: Tutorials