Wiki articles in category How-tos

Showing 61-80 of 80 items.

How to Create and Use Validator Using Regular expressions

Created 2 years 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: 117 230 times
Version: 2.0
Category: How-tos

`forceCopy` per Asset Bundle

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

During development and depending on your setup you may need to use the options forceCopy or linkAssets of the asset manager to work around possible file-system and permission issues.

1 0
1 follower
Viewed: 14 279 times
Version: 2.0
Category: How-tos

MySQL migration environment

Created 9 years ago by Fabrizio Caldarelli, updated 9 years ago by Fabrizio Caldarelli.

It can happen that you work in development environment and you make changes to database tables structures, adding tables, or changing fields.

0 0
2 followers
Viewed: 13 771 times
Version: 2.0
Category: How-tos

Yii2cdn Component

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

A Yii Framework 2 component for using assets in different environments (Local/CDNs)

0 0
2 followers
Viewed: 18 958 times
Version: 2.0
Category: How-tos
Tags: assets, CDN, yii2

How To: Custom Client Validation On Checkbox Toggle and Optional Input Field

Created 9 years ago by Wade Shuler, updated 9 years ago by Wade Shuler.

I just chased my tail around for a bit today. I got lost with setting the status of all inputs, and banging my head on why the "validate" function just wasn't working.

0 0
1 follower
Viewed: 26 188 times
Version: 2.0
Category: How-tos

Use non Gmail/Gsuite on Gcloud projects

Created 7 years ago by Luis Armando, updated 6 years ago by Maurizio Domba Cerin.

Small companies and startups use cheap email services or even Cpanel's mail services which are less secure and compete directly with bigger email providers like Microsoft with Outlook and Google with Gmail. This creates a problem when you try to use their services to send/receive emails from this cheap services. <img width="750" src="https://static.techspot.com/fileshost/newspics3/2017/google-clo...

0 0
3 followers
Viewed: 18 153 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: 21 098 times
Version: 2.0
Category: How-tos

Cómo enviar emails usando SMTP

Created 11 years ago by robregonm, updated 11 years ago by robregonm.
2 0
2 followers
Viewed: 35 478 times
Version: 2.0
Category: How-tos

Using the yii2-datecontrol extension along with yii2-detail-view widget

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

The yii2-datecontrol extension allows you to control separate date formats for display and saving for form inputs.

1 0
37 followers
Viewed: 22 475 times
Version: 2.0
Category: How-tos

using 'whenClient' for complex client side validation

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

You have a 'Category' model with Id, Name and Visibility (boolean, where 0 = Public, and 1 = Private).

1 0
3 followers
Viewed: 27 213 times
Version: 2.0
Category: How-tos

Managing different Bootstrap form layouts with yii2-field-range extension.

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

This wiki will explain how you can use the Field range extension with multiple Bootstrap form layouts (vertical or horizontal). You maybe aware, that the yii2-field-range extension enables you to easily setup ActiveField range fields with Bootstrap styling. You basically can setup two attributes joined together like a single field with combined validation error block.

0 0
37 followers
Viewed: 33 806 times
Version: 2.0
Category: How-tos

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

Created 10 years ago by Ankit Modi, updated 10 years ago by 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 021 times
Version: all
Category: How-tos

Role Management

Created 10 years ago by Dency G B, updated 10 years ago by 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: 25 713 times
Version: 2.0
Category: How-tos
Tags: rbac, yii2

Getting information from the current locale

Created 6 years ago by CeBe, updated 6 years ago by 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: 22 779 times
Version: 2.0
Category: How-tos

Events registration examples

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

Register an event handler at Object-Level

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

Move sources to src

Created 5 years ago by samdark, updated 5 years ago by 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: 15 949 times
Version: 2.0
Category: How-tos

Change default date format in Oracle

Created 5 years ago by lenovo, updated 5 years ago by 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: 77 070 times
Version: 2.0
Category: How-tos
Tags: database

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

Created 5 years ago by grigori, updated 5 years ago by 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: 66 699 times
Version: 2.0
Category: How-tos

Start using Yii2 in Raspberry Pi3 (RPI3) via Pantahub

Created 4 years ago by sirin k, updated 4 years ago by sirin k.

4 0
4 followers
Viewed: 58 023 times
Version: 2.0
Category: How-tos

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

Created 4 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: 91 866 times
Version: 2.0
Category: How-tos