Showing 81-100 of 826 items.

Export query content to excel through any of your controllers, also can set cssClass for header/odd/even rows, auto download

Created 11 years ago by Scott_Huang Scott_Huang, updated 11 years ago by Scott_Huang Scott_Huang. 1 comment

To generate excel by query content, and download through any controller. You also can bind cssClass to header/odd/even rows. As for header, you even can set cssClass for each column.

$this->export2excel($excel_content,$excel_file);

in your controller.

2 0
2
Viewed: 29 725 times
Version: 2.0
Category: Tutorials

Load data from internal/external source to fill form fields

Created 11 years ago by skworden skworden, updated 11 years ago by skworden skworden. 6 comments

This wiki is to show you how to use jQuery get and JSON to get data from a dropdown/any form field and fill form fields with the values instantaneously. First, I'll give example use cases of what I'm going to teach you so you can quickly see if this is for you.

1 0
5
Viewed: 40 749 times
Version: 2.0
Category: How-tos

[Guide] How to actually separate Frontend (User) and Backend (Admin) on Yii2 Advanced

Created 11 years ago by Wade Shuler Wade Shuler, updated 11 years ago by samdark samdark. 10 comments

I am writing this guide because I struggled to find a resource that included ALL of the necessary steps to completely separate the frontend from the backend. After reading guides like Configuring different sessions for backend and frontend in yii-advanced-app and [yii2 configuring d...

Render Form in popup via AJAX (Create and Update) with ajax validation & Also load any page via ajax Yii 2.0 (2.3)

Created 11 years ago by skworden skworden, updated 8 years ago by Yii3 Yii3. 26 comments

There are a few issues with the other solutions I originally used that I found from other wikis. I address the issues I had in this much simpler and shorter way. I am also going to explain what is going into way more detail than others to help people understand what's going on.

21 0
28
Viewed: 265 974 times
Version: 2.0
Category: How-tos

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 11 years ago by Gerhard Liebenberg Gerhard Liebenberg, updated 11 years ago by Gerhard Liebenberg Gerhard Liebenberg. 3 comments

We probably have all used a virtual attribute (model function) to retrieve complex or related data for a CGridView column:

0 0
4
Viewed: 16 107 times
Version: 1.1
Category: How-tos

Using Yii Gallery Manager in your Yii 1.x application

Created 11 years ago by Trejder Trejder, updated 11 years ago by Trejder Trejder. 0 comments

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

0 0
1
Viewed: 20 681 times
Version: 1.1
Category: How-tos

yii2-app-advanced on single domain (Apache, Nginx)

Created 11 years ago by MadAnd MadAnd, updated 4 years ago by QuPsi QuPsi. 8 comments

If you develop rather complex applications with Yii2, you might already be familiar with yii2-app-advanced application template. Well, the template is awesome and provides high flexibility regarding code/configuration sharing among parts of an application.

4 0
14
Viewed: 160 550 times
Version: 2.0
Category: How-tos

Active Record snapshotting (Model data base history)

Created 11 years ago by Bizley Bizley, updated 11 years ago by Bizley Bizley. 3 comments

One of the common tasks the web application might be required to perform, especially the app using some kind of a CMS, is to save the history of data changes. Your client for sure will want the answer to this simple question - If I mess this up or delete by accident can we bring it back? Well, DB backup is one thing and quick recovery is another - let's talk about latter one.

1 0
5
Viewed: 20 105 times
Version: 1.1
Category: Tutorials