Sorted by date (updated)X
Displaying 31-40 of 770 result(s).

YII2: Create console commands inside a module or extension

Updated 6 months ago by OldMehdiTutorials3 comments – viewed 10,787 times – ( +3 ) – version 2.0
Here is a small guide how to get console commands running inside modules & extensions. For this guide I used a fresh yii2 basic application template.
tags: yii2, tutorial, config

How to use nested DB transactions (MySQL 5+, PostgreSQL)

Updated 6 months ago by BoazHow-tos6 comments – viewed 38,158 times – ( +46 ) – version 1.1
Original source code and idea are from: PHP, PDO & Nested Transactions.

Yii2: Query build for complexity SQL

Updated 6 months ago by Scott_HuangTips0 comments – viewed 5,195 times – version 2.0
As for complexity SQL query we have two solutions as below, I will discuss #2 in this article.

Simple Google Maps object for use with ajax maps

Updated 7 months ago by Chris BackhouseHow-tos1 comment – viewed 4,148 times – ( +1 ) – version 2.0
The Google mapping extension by Dos Amigos (link) is really great but there are difficulties with Google maps when you want to manipulate your map object with Ajax.
tags: googlemap, maps

Execute migration on server/linux using shell

Updated 7 months ago by dariooHow-tos2 comments – viewed 3,496 times – version 2.0
It's easy to execute migration locally on XAMPP using cmd, but on server where you script is it's little bit harder.

How to register scripts and css

Updated 7 months ago by oligalmaHow-tos0 comments – viewed 10,593 times – version 1.1
First of all, we need to download the jQuery library and store it in the js folder. In this example we are using the version 2.1.3.

How to validate the uniqueness of multiple columns

Updated 7 months ago by oligalmaHow-tos1 comment – viewed 2,977 times – ( +1 ) – version 1.1
I am going to show you an effective way to validate the uniqueness of multiple columns.

Simple revealing and hiding the password in the password field

Updated 7 months ago by BizleyHow-tos2 comments – viewed 4,015 times – ( +2 ) – version 2.0
There are numerous usability problems:

Configuring different sessions for backend and frontend in Yii advanced app

Updated 8 months ago by Kartik VHow-tos2 comments – viewed 18,377 times – ( +46 ) – version 2.0
After you have setup your Yii2 advanced application, you now have setup your user authentication for both frontend and backend. However, if you have first logged into frontend, and try to access backend from the same client machine, you see no login screen, but find yourself automatically logged in.

Behaviour for Time Zone and Format conversion for Date, Time, timestamp, and datetime

Updated 8 months ago by SmitheshHow-tos1 comment – viewed 6,611 times – ( +3 ) – version 1.1
This Behaviour helps to view time/date/timestamp/datetime from db to local Date / Time / Date Time format and in local Timezone. And save into db in with db timezone and db format. You only need to include this behaviour in models where need this facility.