Wiki

Sorted by viewsX
Displaying 481-490 of 786 result(s).

How to make customizable Db Table prefixes using ActiveRecord

Created 8 years ago by killermonkTutorials0 comments – viewed 16,394 times – ( -1 ) – version 1.1
Note: As of Yii 1.1.x this functionality is integrated into the framework. If you are using 1.1.x please disregard this article and use the built-in functionality.

New Relic Error Alert with Yii

Created 4 years ago by simon604Tips2 comments – viewed 16,358 times – ( +6 / -1 ) – version 1.1
Introduction

How to log context information to logger (session id, user, ...)

Created 8 years ago by olafureTutorials0 comments – viewed 16,283 times – ( +2 / -1 ) – version 1.1
Logging context information (session, user, ...) to the logfile can be of great help tracking down problems with specific users.
tags: Logging

How to use yii2-authclient to communicate with Twitter using Single Access Token

Created 3 years ago by Antonio RamirezHow-tos2 comments – viewed 16,263 times – ( +4 / -1 ) – version 2.0
This tutorial is not about allowing users to sign into your application by using any of the OAuth providers available with the official yii2-authclient extension, it is about how to interact with your Twitter account, the one you set for your Yii2 app to promote your site, using the Single Access Token technique.

Caching the config main.php

Created 6 years ago by dckurushinTutorials11 comments – viewed 16,257 times – ( +4 / -3 ) – version 1.1
The config long array included every time, and it's not cached at all!

Use minified version of JqueryAsset, BootstrapAsset (and all default assets)

Created 3 years ago by robregonmHow-tos2 comments – viewed 16,233 times – ( +11 / -2 ) – version 2.0
By default, Yii 2.0 chooses to use the non-minified version of Jquery and Bootstrap files (CSS and JS). However, there's a simple way to indicate Yii to use the minified version.

How to create yii2 extension and push to github and register into packagist to allow end user install from composer

Created 2 years ago by Scott_HuangHow-tos1 comment – viewed 16,217 times – ( +5 / -1 ) – version 2.0
1. Create Extension in yii2.

Using events with CAction classes

Created 6 years ago by Antonio RamirezTips0 comments – viewed 16,199 times – ( +10 / -1 ) – version 1.1
There are some good guides out there explaining how to work with events and the ways to attach them to your components, but none (that I know) explain the following way to configure your events with CAction classes on your controllers the following way.

Create image thumbnails with php_img_preview

Created 5 years ago by Anas AbuDayahTutorials6 comments – viewed 16,127 times – ( +3 / -1 ) – version 1.1
This is another way to view images in your application and I like this way because it's simple and I think it's better performance than other.
tags: images, views

Update related models of a model using listBox and checkBoxList in the form

Created 3 years ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 16,063 times – ( +2 / -1 ) – version 1.1
Suppose you want to have a list in Category with its related products and you want to updates the list (removing or insert product items) This wiki show us how to do that