Wiki

Sorted by viewsX
Displaying 561-570 of 696 result(s).

Filter & Sort by Summary Data in GridView Yii 2.0

Created 4 months ago by Kartik VTutorials5 comments – viewed 4,149 times – ( +27 / -4 ) – version 2.0
This wiki explains how to add summary data from related models into your Yii Framework 2.0 gridview with filtering and sorting by the summary columns.

Custom Archive in Blog system

Created 2 years ago by nirmalrokaTips0 comments – viewed 3,979 times – ( +2 ) – version 1.1
Hi I had made simple archive system for blog system that can handle tbl_post. I had used simple CDbCriteria not more than that. I know there is more and many better way to this but I think this will give some idea to users to generate new idea or customized or modified this version of code.

Inline views, write less

Created about a year ago by FirebreakerTips0 comments – viewed 3,932 times – ( +3 )
Sometimes writing views like

Update specific cgridview html row after AJAX request

Created 4 months ago by KonApazHow-tos3 comments – viewed 3,917 times – ( +2 ) – version 1.1
After of model update (successfull or not) throught CGridView (check the below link) you probably need to updates the specific row html in cgridview (not entire cgridview)

Caching strategy

Created 10 months ago by darkheirHow-tos9 comments – viewed 3,915 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

Saving CGridView filter

Created 7 months ago by sefburhanTutorials5 comments – viewed 3,902 times – ( +27 ) – version 1.1
In this tutorial we will try to save cgridview filter(search) with title etc. basically we want to save two forms data i.e one represents filters and other data about filters like title, description etc. You can define your own structure for filter saving table here are some basic steps

How to preload dropdowns in CForm

Created about a year ago by transistorTips0 comments – viewed 3,878 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.

Nested inline active fields inside Bootstrap horizontal forms

Created 3 months ago by Kartik VHow-tos2 comments – viewed 3,875 times – ( +28 ) – version 2.0
Are you using the Bootstrap 3 form styles with Yii 2 Active Forms? Have you faced problems in displaying complex layouts which needs you to display multiple inline form fields in a single row, within bootstrap horizontal forms. Then read on.

Yii Change Password with use of old and repeat password using bootstrap TbActiveForm

Created 3 months ago by Rohit SutharTutorials6 comments – viewed 3,858 times – ( +3 / -1 ) – version 1.1
In this wiki I will show how could use a TbActiveForm for changing the old password with help of old, new and repeat password features.

Set a menu - reusable code

Created 10 months ago by KonApazTips0 comments – viewed 3,851 times – ( +1 )
As we know Using crud generator creates menu items in view files (for each view file have a varius menu items)