Wiki articles

Showing 141-146 of 146 items.

Move sources to src

Created 4 months ago by samdark, updated 4 months 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.

8 0
4 followers
Viewed: 3 529 times
Version: 2.0
Category: How-tos

Change default date format in Oracle

Created 4 months ago by lenovo, updated 3 months 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: 5 735 times
Version: 2.0
Category: How-tos
Tags: database

Optimize Scenarios for yii2

Created 3 years ago by AndroideLP, updated 3 months ago by AndroideLP.

Working with scenarios, with models that can receive many modifications in their rules or structures as development evolves, can create disruptions in the rescue process.

4 0
2 followers
Viewed: 24 720 times
Version: 2.0
Category: Tutorials

How to login from different tables in Yii2

Created a year ago by AndroideLP, updated 3 months ago by AndroideLP.

The Problem: Yii2 utilizes by default UserIdentity configured in config/web.php for connection, this object appy one table to authentication ('identityClass' => 'app\painel\models\User'). How to authentication from diferent tables? Solution: Create instances in web.php to uses UserIdentify. eg:

5 0
5 followers
Viewed: 24 866 times
Version: 2.0
Category: How-tos

Yii v2 snippet guide

Created 3 months ago by rackycz, updated 2 months ago by rackycz.

Please note, that this article will be updated regularly as I have more and more snippets so come back in a few weeks

3 0
2 followers
Viewed: 18 610 times
Version: 2.0
Category: Tutorials

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

Created a month ago by grigori, updated a month ago by samdark.

bad design of Active Record.

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