Wiki articles

Showing 141-147 of 147 items.

Optimize Scenarios for yii2

Created 3 years ago by AndroideLP, updated 5 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: 26 087 times
Version: 2.0
Category: Tutorials

How to login from different tables in Yii2

Created 2 years ago by AndroideLP, updated 5 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: 26 916 times
Version: 2.0
Category: How-tos

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

Created 4 months ago by grigori, updated 2 months ago by grigori.

bad design of Active Record.

4 0
3 followers
Viewed: 7 385 times
Version: 2.0
Category: How-tos

How to learn Yii?!

Created 8 years ago by yJeroen, updated 2 months ago by CeBe.

Here is a step by step To-Do list for Yii beginners. The list is an advice of what tutorials and documentation you can walk through to get a full understanding of the Yii Framework. These can be a help to learn Yii.

17 0
21 followers
Viewed: 102 158 times
Version: all
Category: Tutorials

Upload files in Yii2 with MongoDb and GridFs

Created 6 years ago by edoardo849, updated a month ago by pceuropa.

Uploading files in a webapp can be extremely tricky and sometimes the quickest way to do it is to store the file directly in the webserver or into a DNS (like Amazon S3) and then to save the link and the metadata inside a table in the DB. The thing is that you'll have to deal with file permissions, server storage, file management and so on (which is perfectly fine, by the way).

6 0
6 followers
Viewed: 24 677 times
Version: 2.0
Category: How-tos

Yii2 - Upgrading to Bootstrap 4

Created a month ago by Richard Pillay, updated 15 days ago by Richard Pillay.

Yii2 - Converting from Bootstrap3 to Bootstrap4

1 0
2 followers
Viewed: 4 330 times
Version: 2.0
Category: How-tos

Yii v2 snippet guide

Created 6 months ago by rackycz, updated 14 days 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: 29 014 times
Version: 2.0
Category: Tutorials