Wiki

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

an easy way to required multi columns(At least one cannot be blank)

Created 5 years ago by 1065227709Tips0 comments – viewed 6,815 times – ( +2 ) – version 1.1
in model add the following code:
tags: rules

Yii2: How to create/develop a new extension using Composer locally without version control or Git

Created 5 months ago by Wade ShulerHow-tos0 comments – viewed 6,791 times – ( +2 ) – version 2.0
Using a version control system, like Git, is nice. However, when building an extension from scratch and loading it via Composer, it adds a lot of pain in the butt steps. You have to commit your changes, update composer to pull them over, then notice there is an error, fix, commit, update. repeat.. I don't want all my baby steps under Git. Sure, I could edit my commit history, but c'mon. Just let me code! I will put it under version control once I get a baseline created. This guide will show you how to setup your composer.json to load a local directory (everything inside, live). You make a change, save the file, refresh the page, boom.

Implementing menu items with progress (wait) dialog

Created 3 years ago by TrejderHow-tos0 comments – viewed 6,757 times – ( +1 ) – version 1.1
This article shows one of possible ways to implement menu items (as well as links), which displays a progress / wait dialog and are redirecting browser to destination URL in the same time. This is especially useful, for links or routes that are know to be loaded for a prolonged period of time (i.e. getting a lot of data from database).

Caching strategy

Created 3 years ago by darkheirHow-tos9 comments – viewed 6,662 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

Advanced CGridview issues - custom button using php and html

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

Simple Google Maps object for use with ajax maps

Created about a year ago by Chris BackhouseHow-tos1 comment – viewed 6,601 times – ( +1 ) – version 2.0
The Google mapping extension by Dos Amigos (link) is really great but there are difficulties with Google maps when you want to manipulate your map object with Ajax.
tags: googlemap, maps

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

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

Entire Messages into javascript object

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

Multiple CGridView virtual attributes, retrieved from a single model function. Also communication between CGridView columns and rows; and between CGridView and its own parent view.

Created about a year ago by Gerhard LiebenbergHow-tos3 comments – viewed 6,326 times – ( +1 ) – version 1.1
We probably have all used a virtual attribute (model function) to retrieve complex or related data for a CGridView column:

Using Yii Gallery Manager in your Yii 1.x application

Created about a year ago by TrejderHow-tos0 comments – viewed 6,290 times – ( +1 ) – version 1.1
Finding good looking, working and not abandoned gallery manager for Yii 1.x application is a tough task. Out of all I found, only yii-gallery-manager extension looked promising. But, after downloading it, it turned out, that there are certain unusual things to do, to include it in your application. So, I decided to write this article to remember all these for future reference.