Sorted by viewsX
Displaying 681-690 of 779 result(s).

Caching strategy

Created 2 years ago by darkheirHow-tos9 comments – viewed 6,417 times – ( +5 / -1 ) – version 1.1
Note: Before reading this wiki you should have read the caching part in the Yii guide
tags: caching, filter

How to create a custom exception and show it friendly with CJuiDialog

Created about a year ago by Fábio SalesHow-tos0 comments – viewed 6,396 times – ( +1 ) – version 1.1
Sometimes we need to create our custom exception and show it to the end user through a friendly way . In this article, I'm showing how to do it using CJuidialog.

Yii2: Query build for complexity SQL

Created about a year ago by Scott_HuangTips0 comments – viewed 6,274 times – version 2.0
As for complexity SQL query we have two solutions as below, I will discuss #2 in this article.

Entire Messages into javascript object

Created 4 years ago by markuxHow-tos0 comments – viewed 6,265 times – ( +2 ) – version 1.1
I needed all messages with their translation into javascript. This is my solution:

Installation guide: Yii-2 advanced template with RBAC system

Created 2 months ago by Sherin JoseTutorials0 comments – viewed 6,260 times – ( +9 ) – version 2.0
Welcome, all of you !
tags: install, yii2, rbac

Advanced CGridview issues - custom button using php and html

Created 2 years ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 6,233 times – ( +1 ) – version 1.1
This wiki shows about how to make a custom column or how to pass php-Yii-html code in CButtonColumn (as a button)

How to store array/widget configuration to the database with config validation rules

Created 2 years ago by Kartik VTutorials0 comments – viewed 6,099 times – ( +39 / -4 ) – version 2.0
You may have scenarios, where you want to store a specific array configuration to the database. A classic example could be saving Yii widget configuration to the database and then retrieving it at runtime, with dynamic parameters set. This wiki discusses one of the approaches to do this. Let's consider you have something like the NavBar configuration below to store in the db:

Yii behind a reverse proxy, SSL support and correct IP logging

Created 4 years ago by mrkmgTips0 comments – viewed 6,015 times – version 1.1
If you are hosting Yii behind a reverse proxy, for example nginx, and you are having issues with your logs showing the proxies IP, or the urls being created arn't being created for SSL because your SSL certs are located on your reverse proxy instead of the Yii server, this code may be able to help you. I placed them in the very top of Yii's entry script, index.php

How to preload dropdowns in CForm

Created 3 years ago by transistorTips0 comments – viewed 6,014 times – ( +1 )
So you want to use CForm (form builder), but need to preload dropdowns in a form? It's simpler than it seems. You got your CFormModel, CForm and the actual Form, right? Let's say you have the typical State -> City dependent dropdowns, so you would want to load the from with the State and City selected.

Useful Multilanguage extensions collection and use.

Created 3 years ago by cihappyTips2 comments – viewed 6,013 times – ( +3 ) – version 1.1
What I want to achieve: