Wiki

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

Entire Messages into javascript object

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

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,020 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.

Advanced CGridview issues - custom button using php and html

Created 2 years ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 5,996 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)

Yii2: Query build for complexity SQL

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

Useful Multilanguage extensions collection and use.

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

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

Created 4 years ago by mrkmgTips0 comments – viewed 5,902 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 5,892 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.

CMenu widget like bootstrap navbar with submenu

Created 6 months ago by kv4ntTutorials0 comments – viewed 5,882 times – version 1.1

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

Created 2 years ago by Kartik VTutorials0 comments – viewed 5,874 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:

Using Nginx and Apache2 in separate distributed servers (ie, Amazon EC2 instances)

Created 3 years ago by Luis Lobo BorobiaTips0 comments – viewed 5,848 times – ( +2 )
We are running one frontend running NGINX and several app servers running Apache2. There are several issues we have come across but right now I'll be documenting one of them. I'll be completing this article when I get more time.