Wiki

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

CMenu widget like bootstrap navbar with submenu

Created 7 months ago by kv4ntTutorials0 comments – viewed 6,259 times – version 1.1

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

Entire Messages into javascript object

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

Advanced CGridview issues - custom button using php and html

Created 2 years ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 6,103 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 11 months ago by Scott_HuangTips0 comments – viewed 6,096 times – version 2.0
As for complexity SQL query we have two solutions as below, I will discuss #2 in this article.

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

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

Useful Multilanguage extensions collection and use.

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

How to preload dropdowns in CForm

Created 3 years ago by transistorTips0 comments – viewed 5,962 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.

Search a file size range in CGridView

Created 3 years ago by CrazyCatTips0 comments – viewed 5,926 times – ( +2 )
Working on a report system of files transfert, I had to let the users simply find files by size. I didn't want to have two fields, I prefer a simple text input, with "human syntax".